scf_transition_document
Advance a document through its lifecycle from draft to review, approved, or published, with platform-enforced valid target statuses. Permissions required for approving and publishing.
Instructions
Move a document through its lifecycle — draft to review, review to approved, approved to published (write — approving and publishing need admin). Valid targets are enforced by the platform.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org_id | Yes | Organization UUID — obtain from scf_list_organizations | |
| reason | No | Free-text justification recorded on the transition | |
| to_status | Yes | Target lifecycle status (e.g. 'in_review', 'approved', 'published') | |
| document_id | Yes | Generated document UUID — obtain from scf_list_documents |