v1
latestSwagger 2.02026-07-1711511.8 KBjobs
Create or updates a new job.
post/jobs
Query parameters
runoncreatestring
If present, regardless of any value, causes the job to be run immediately after being succesfully created or updated.
This will cause the server to wait until the job has finished before returning a result.
Request body
Example request
{
"name": "job1",
"schedule": "@every 10s",
"timezone": "Europe/Berlin",
"owner": "Platform Team",
"owner_email": "platform@example.com",
"tags": {
"server": "true"
},
"metadata": {
"office": "Barcelona"
},
"retries": 2,
"parent_job": "parent_job",
"dependent_jobs": [
"dependent_job"
],
"processors": {
"files": {
"forward": true
}
},
"concurrency": "allow",
"executor": "shell",
"executor_config": {
"command": "echo 'Hello from Dkron'"
},
"status": "success"
}Response
Successful response
Example response
{
"name": "job1",
"schedule": "@every 10s",
"timezone": "Europe/Berlin",
"owner": "Platform Team",
"owner_email": "platform@example.com",
"tags": {
"server": "true"
},
"metadata": {
"office": "Barcelona"
},
"retries": 2,
"parent_job": "parent_job",
"dependent_jobs": [
"dependent_job"
],
"processors": {
"files": {
"forward": true
}
},
"concurrency": "allow",
"executor": "shell",
"executor_config": {
"command": "echo 'Hello from Dkron'"
},
"status": "success"
}