Jobs /
List jobs
Gets a list of jobs belonging to the project
Required permission
Project > Jobs > General > Read
Path parameters
projectId
string requiredID of the project
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.jobs
[array] requiredAn array of job objects.- {object}
id
string requiredIdentifier for the jobprojectId
string requiredID of the project that the job belongs toappId
string requiredFull identifier used for job deploymentname
string requiredJob namedescription
stringA short description of the jobjobType
string requiredType of the job (manual or cron)one ofmanual, crondisabledCI
boolean requiredWhether Continuous Integration is disableddisabledCD
boolean requiredWhether Continuous Deployment is disabledsuspended
booleanCron specific. Whether or not the job's automatic scheduling is suspendedpagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/projects/{projectId}/jobs
Example response
200 OK
A list of jobs belonging to the project.
JSON
{
"data": {
"jobs": [
{
"id": "example-job",
"projectId": "default-project",
"appId": "/example-user/default-project/example-job",
"name": "Example Job",
"tags": [
"my-tag"
],
"description": "This is the job description",
"jobType": "cron",
"disabledCI": false,
"disabledCD": false,
"suspended": false
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}