curl --request PATCH \
--url https://api.example.com/automations/{automation_id}/sessions/{session_id}/cancel \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"automation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inputs": {},
"error": "<string>",
"status": "NEW",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"steps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "NEW",
"prompt": {
"type": "<string>"
},
"result": "<string>",
"error": "<string>",
"step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"step_type": "START",
"prompt_template": {
"type": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"steps_count": 123,
"current_step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "NEW",
"prompt": {
"type": "<string>"
},
"result": "<string>",
"error": "<string>",
"step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"step_type": "START",
"prompt_template": {
"type": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}curl --request PATCH \
--url https://api.example.com/automations/{automation_id}/sessions/{session_id}/cancel \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"automation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inputs": {},
"error": "<string>",
"status": "NEW",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"steps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "NEW",
"prompt": {
"type": "<string>"
},
"result": "<string>",
"error": "<string>",
"step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"step_type": "START",
"prompt_template": {
"type": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"steps_count": 123,
"current_step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "NEW",
"prompt": {
"type": "<string>"
},
"result": "<string>",
"error": "<string>",
"step": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"step_type": "START",
"prompt_template": {
"type": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
NEW, RUNNING, FINISHED, FAILED Show child attributes
NEW, RUNNING, FINISHED, FAILED Show child attributes
START, LLM_CALL, GET_USER_INPUT, LOGIC_DECISION, EMBEDDING_SEARCH, REST_API, WEB_SCRAPE, PYTHON, TEXT_TO_JSON, DATA_TRANSFORM Show child attributes
NEW, RUNNING, FINISHED, FAILED Show child attributes
START, LLM_CALL, GET_USER_INPUT, LOGIC_DECISION, EMBEDDING_SEARCH, REST_API, WEB_SCRAPE, PYTHON, TEXT_TO_JSON, DATA_TRANSFORM Show child attributes
"START"