POST
/
jobs
/
trigger
/
{jobId}
curl --request POST \
  --url https:/api.schedo.dev/api/jobs/trigger/{jobId} \
  --header 'X-API-ENVIRONMENT: <x-api-environment>'
{
  "duration": 123,
  "end_time": "<string>",
  "error": "<string>",
  "exit_code": 123,
  "id": 123,
  "job_code": "<string>",
  "output": "<string>",
  "pick_up_time": "<string>",
  "start_time": "<string>",
  "status": "<string>"
}

Headers

X-API-ENVIRONMENT
integer
required

1

Path Parameters

jobId
integer
required

Job ID

Response

200 - application/json
OK
duration
integer

Duration holds the value of the "duration" field.

end_time
string

Time when execution completed

error
string

Error message if execution failed

exit_code
integer

Exit code of the executed command

id
integer

ID of the ent.

job_code
string

JobCode holds the value of the "job_code" field.

output
string

Output of the executed command

pick_up_time
string

Time when execution was picked up by a worker

start_time
string

Time when execution started

status
string

Execution status (running, completed, failed, skipped, expired)