jobs
POST /jobs
Create or updates a new job.
Request
- Base URLhttp://localhost:8080/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}Changes
No recorded changes to this operation across all 1 revision of this API.