Skip to content

Update a cron job

PATCH
/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}
curl --request PATCH \
--url https://dashboard.quantcdn.io/api/v3/organizations/test-org/applications/test-app/environments/test-env/cron/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "scheduleExpression": "example", "command": [ "example" ], "targetContainerName": "example", "isEnabled": true }'
organisation
required
string

The organisation ID

Example
test-org
application
required
string

The application ID

Example
test-app
environment
required
string

The environment ID

Example
test-env
cron
required
string

The cron job ID

Media typeapplication/json
object
description
string
nullable
scheduleExpression
string
nullable
command
Array<string>
nullable
targetContainerName
string
nullable
isEnabled
boolean
nullable
Examplegenerated
{
"description": "example",
"scheduleExpression": "example",
"command": [
"example"
],
"targetContainerName": "example",
"isEnabled": true
}

The updated cron job

Media typeapplication/json
object
name
string
description
string
nullable
scheduleExpression
string
command
Array<string>
targetContainerName
string
nullable
isEnabled
boolean
Examplegenerated
{
"name": "example",
"description": "example",
"scheduleExpression": "example",
"command": [
"example"
],
"targetContainerName": "example",
"isEnabled": true
}

The cron job not found