Disable a workflow
/automation/{id}/disable
Path Parameters
Resource id
Response Body
Why the Agent cannot edit it, for a caller who otherwise could. Null when available, or when the caller cannot edit at all.
assistant_disabledllm_not_configurednot_permittednull
The in-app Agent can edit this workflow for the caller.
The caller may throw the draft away and go back to the live version.
The MCP client that made the last edit, when updated_via is mcp.
Where the last draft edit came from.
consoleagentmcpapinull
False until a first publish; there is nothing to compare against before then.
5 properties
addedchangedremoved
Changes beyond the listed items.
Steps the draft no longer has, with where they were.
Per step key: added or changed, for the diagram.
Absent when the caller is below use access (run history is what the runs tab shows) or while it is not known yet.
Connected apps the live version uses (the draft, if never published), most-used first.
3 properties
Apps beyond apps.
Runs per UTC day by the day each was queued, oldest first, ending today. Dry runs excluded.
4 properties
Canceled, skipped or still going.
The person's picture: their stored profile picture, else a Gravatar URL (d=404, 96px) derived from their email (the address itself is not sent), else null. Draw initials when it is null or the image fails to load.
The same 14 days as glance.run_history. Absent below use access, or when the run history is not known.
Succeeded / (succeeded + failed) over the same 14 days; null when none finished.
Pending approvals: runs parked on a person.
draftactivedisabledpaused
curl -X POST 'https://api.elaichi.ai/automation/<id>/disable' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json'const response = await fetch('https://api.elaichi.ai/automation/<id>/disable', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import os
import requests
url = "https://api.elaichi.ai/automation/<id>/disable"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
response = requests.post(url, headers=headers)
print(response.json())