Jobs /
Suspend job
Modify cron job to toggle suspending of its schedule.
Required permission
Project > Jobs > General > Update
Path parameters
projectId
string requiredID of the projectjobId
string requiredID of the job
Request body
- {object}
suspended
booleanIn the case of cron jobs, whether scheduling should be paused.
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
POST /v1/projects/{projectId}/jobs/{jobId}/suspend
Example request
Request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"suspended":true}' \
https://api.northflank.com/v1/projects/{projectId}/jobs/{jobId}/suspend
Example response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}
Example response
409 Conflict
Setting can only be modified for cron jobs.