asksteps: replace the building blocks and transitions of a process
asksteps_update_processChanges a process of the connected asksteps account. Requires "automation:write". IMPORTANT: this REPLACES the building blocks and transitions completely — every block and transition you do not send is gone, together with the state it holds in open cases. Call asksteps_get_process first, change what the user asked for and send the result back whole. A block sent back with the key it was read with keeps its identity, position and open-case state; workflows assigned in the studio are never touched. A draft can be changed freely. An ACTIVE or PAUSED process can only be changed with the account's mandate "activate" (a paused process keeps sending for open cases): without it the answer is "confirmation_required", NOTHING was written, and you hand the user the url. An active process also refuses structural changes ("pause_required"), and changing portModes counts as one; name, description and labels still work. An exit whose mode you leave out of portModes keeps its stored mode. A fixed recipient address cannot be set; it is kept on the block it was on. An API request block (kind "api") keeps its stored settings when sent back with its key; it cannot be added and its settings cannot be set (api_part_studio_only).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"process_id": "<process_id>",
"spec": "<spec>"
},
"name": "asksteps_update_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The complete new process. Anything omitted is deleted. | |
| process_id | Yes | The process id, as returned by asksteps_list_processes or asksteps_get_process. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Path of the process editor in the asksteps studio. Hand it to the user; a process created here shows its blocks laid out when the studio opens it. | |
| note | Yes | One or two sentences for the user. On "confirmation_required" and "pause_required" it says why. | |
| used | No | How many the account holds. Only on "quota_exceeded". | |
| limit | No | The plan limit. Only on "quota_exceeded". | |
| issues | No | The problems found, with path and code. Empty unless status is "invalid". | |
| status | Yes | Outcome. One of: "created" (a draft exists, nothing is switched on), "updated", "invalid" (the issues say exactly what to fix; nothing was saved), "quota_exceeded" (the account holds as many processes as its plan allows), "pause_required" (the process is active and this change touches its structure — it can only be made while the process is paused), "confirmation_required" (the process is active or paused and the account has not authorised an agent to change it: NOTHING was written, give the user the url), "stale" (the process was switched on, paused or otherwise changed in status since you read it: NOTHING was written, read it again), "rate_limited" (too many changes to live objects in the last minute), "not_found", "not_connected", "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "permission_denied" (the connected user's role lacks the permission; the note names it), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do. | |
| quotaKey | No | The limit that was reached, for example "processes.max". Only on "quota_exceeded". | |
| processId | No | The id of the process. | |
| processStatus | No | The status of the process after the call: "draft", "active" or "paused". A created process is always "draft". |