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}
Request
- Base URLhttps://api.onkernel.com
- URLhttps://api.onkernel.com/invocations/{id}
- AuthHTTP bearer
Path parameters
idstring required
Invocation ID
Request body
Response
Invocation updated successfully
Example response
{
"action_name": "analyze",
"app_name": "my-app",
"finished_at": "2024-05-19T15:30:05.000000000Z07:00",
"id": "rr33xuugxj9h0bkf1rdt2bet",
"output": "{\"result\":\"success\",\"data\":\"processed input\"}",
"payload": "{\"data\":\"example input\"}",
"started_at": "2024-05-19T15:30:00.000000000Z07:00",
"status": "succeeded",
"status_reason": "Invocation timed out after 900 seconds.",
"version": "1.0.0"
}Changes
No recorded changes to this operation across all 123 revisions of this API.