Travis CI API Docs

Log

An individual log.

Attributes

Minimal Representation

Included when the resource is returned as part of another resource.

NameTypeDescription
idIntegerThe log's id.

Standard Representation

Included when the resource is the main response of a request, or is eager loaded.

NameTypeDescription
idIntegerThe log's id.
contentStringThe content of the log.
log_partsArrayThe log parts that form the log.

Actions

Find

This returns a single log.

It's possible to specify the accept format of the request as text/plain if required. This will return the content of the log as a single blob of text.

curl -H "Travis-API-Version: 3" \
  -H "Accept: text/plain" \
  -H "Authorization: token xxxxxxxxxxxx" \
  https://api.travis-ci.org/job/{job.id}/log

The default response type is application/json, and will include additional meta data such as @type, @representation etc. (see https://developer.travis-ci.org/format).

GET
/job/{job.id}/log
run ⨠
Template VariableTypeDescription
job.idIntegerValue uniquely identifying the job.
Query ParameterTypeDescription
include[String]List of attributes to eager load.
log.tokenUnknownDocumentation missing.

Example:GET/job/86601347/log

GET
/job/{job.id}/log.txt
run ⨠
Template VariableTypeDescription
job.idIntegerValue uniquely identifying the job.
Query ParameterTypeDescription
include[String]List of attributes to eager load.
log.tokenUnknownDocumentation missing.

Example:GET/job/86601347/log.txt

Delete

This removes the contents of a log. It gets replace with the message: Log removed by XXX at 2017-02-13 16:00:00 UTC.

curl -X DELETE \
  -H "Travis-API-Version: 3" \
  -H "Authorization: token xxxxxxxxxxxx" \
  https://api.travis-ci.org/job/{job.id}/log
DELETE
/job/{job.id}/log
Template VariableTypeDescription
job.idIntegerValue uniquely identifying the job.

Example:DELETE /job/86601347/log