Close a job execution
Close a job execution as completed or failed.
Call this when an off-platform script finishes. Either status is final: re-sending the same status is a no-op, and changing it is rejected. Only executions opened by the start tool are accepted; the platform records every other execution’s status itself.
Requires an API key with the write scope.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
execution_id
Request
This endpoint expects an object.
status
How the run ended. Either status is final: the execution cannot change status afterwards.
Response
OK
job_execution_id
Pass this as job_execution_id to the write and upload-file tools.
job_id
ID of the job the execution belongs to.
job_name
Name of the job the execution belongs to.
status
The execution's current status.
started_at
When the execution started.
completed_at
When the execution ended, or null while it is still running.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error