transition_document_state
Move a document to a target state in its approval flow, using state IDs from list_flow_states. The transition may be rejected if the flow requires an approver that the current user is not.
Instructions
Move a document to another state in its flow. Get valid state ids from list_flow_states (the document's flow is on its content type). Transitions may be rejected if the flow requires an approver the API key's user is not.
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": {
"id": "<id>",
"state_id": "<state_id>"
},
"name": "transition_document_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id (UUID) | |
| state_id | Yes | Target state id (UUID) |