Travis CI API Docs

Crons

A list of crons.

If querying using the repository slug, it must be formatted using standard URL encoding, including any special characters.

Attributes

NameTypeDescription
crons[Cron]List of crons.

Collection Items

Each entry in the crons array has the following attributes:

NameTypeDescription
idIntegerValue uniquely identifying the cron.
repositoryRepositoryGithub repository to which this cron belongs.
branchBranchGit branch of repository to which this cron belongs.
intervalStringInterval at which the cron will run (can be "daily", "weekly" or "monthly").
dont_run_if_recent_build_existsBooleanWhether a cron build should run if there has been a build on this branch in the last 24 hours.
last_runStringWhen the cron ran last.
next_runStringWhen the cron is scheduled to run next.
created_atStringWhen the cron was created.
activeUnknownThe cron's active.

Actions

For Repository

This returns a list of crons for an individual repository. It is possible to use the repository id or slug in the request.

GET
/repo/{provider}/{repository.id}/crons
Template VariableTypeDescription
providerUnknownDocumentation missing.
repository.idIntegerValue uniquely identifying the repository.
Query ParameterTypeDescription
include[String]List of attributes to eager load.
limitIntegerHow many crons to include in the response. Used for pagination.
offsetIntegerHow many crons to skip before the first entry in the response. Used for pagination.
GET
/repo/{provider}/{repository.slug}/crons
Template VariableTypeDescription
providerUnknownDocumentation missing.
repository.slugStringSame as {repository.owner.name}/{repository.name}.
Query ParameterTypeDescription
include[String]List of attributes to eager load.
limitIntegerHow many crons to include in the response. Used for pagination.
offsetIntegerHow many crons to skip before the first entry in the response. Used for pagination.
GET
/repo/{repository.id}/crons
Template VariableTypeDescription
repository.idIntegerValue uniquely identifying the repository.
Query ParameterTypeDescription
include[String]List of attributes to eager load.
limitIntegerHow many crons to include in the response. Used for pagination.
offsetIntegerHow many crons to skip before the first entry in the response. Used for pagination.

Example:GET /repo/891/crons?limit=5

GET
/repo/{repository.slug}/crons
Template VariableTypeDescription
repository.slugStringSame as {repository.owner.name}/{repository.name}.
Query ParameterTypeDescription
include[String]List of attributes to eager load.
limitIntegerHow many crons to include in the response. Used for pagination.
offsetIntegerHow many crons to skip before the first entry in the response. Used for pagination.

Example:GET /repo/rails%2Frails/crons?limit=5