scf_transition_document
Transition documents between lifecycle stages (draft, review, approved, published) with enforced valid targets and admin-level permissions for approval and publication.
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 |