Approval Workflows
Updates an approval workflow
Changed onReplaces an approval workflow's definition. The whole definition is required — a partial body is rejected, not merged, and fields this contract does not define are ignored. Send type and active back as read; changing either here is rejected, and combinations the Rillet app cannot configure are rejected too (see the individual fields).
Entries already awaiting approval are unaffected, because an entry copies the layers it needs when approval starts; only entries registered after this call use the new definition. Deadlines and layer escalation rules are not part of this contract and are cleared, exactly as saving a workflow in Rillet clears them.
put/approval-workflows/{approval_workflow_id}
Request
- Base URLhttps://api.rillet.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
approval_workflow_idstring uuid required
UUID of the approval workflow to be used in this operation.
Request body
Example request
{
"name": "JE over 50k — Controller then CFO",
"type": "JOURNAL_ENTRY",
"condition_group": {
"logic": "AND",
"conditions": [
{
"operator": "ANY_OF"
}
]
},
"approval_layers": [
{
"id": "0199e21e-3b5a-7222-9d33-bbccddeeff00",
"order": 1,
"approver_user_ids": [
"0199e21a-9b3d-7cde-8f21-665544332211"
]
}
],
"methods": [
"IN_APP"
],
"submission_sources": [
"UI"
]
}Response
OK
Changes
- info
endpoint added
- info