POST
/
jobs
/
executions
/
complete
/
{executionId}
curl --request POST \
  --url https:/api.schedo.dev/api/jobs/executions/complete/{executionId} \
  --header 'Content-Type: application/json' \
  --data '{
  "complete_server_time_utc": 123,
  "error": "Error message",
  "output": "Output message",
  "start_server_time_utc": 123,
  "success": true
}'
{
  "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>"
}

Path Parameters

executionId
integer
required

1

Body

application/json
body
success
boolean
required
Example:

true

complete_server_time_utc
integer
error
string
Example:

"Error message"

output
string
Example:

"Output message"

start_server_time_utc
integer

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)