Invocations
Update invocation
Update an invocation's status or output. This can be used to cancel an invocation by setting the status to "failed".
patch/invocations/{id}
Path parameters
idstring required
Invocation ID
Request body
Response
Invocation updated successfully
Example response
{
"id": "rr33xuugxj9h0bkf1rdt2bet",
"app_name": "my-app",
"version": "1.0.0",
"action_name": "analyze",
"payload": "{\"data\":\"example input\"}",
"output": "{\"result\":\"success\",\"data\":\"processed input\"}",
"started_at": "2024-05-19T15:30:00.000000000Z07:00",
"finished_at": "2024-05-19T15:30:05.000000000Z07:00",
"status": "succeeded",
"status_reason": "Invocation completed successfully"
}