Apply a status transition
Moves the worksheet between lifecycle states. Modeled as an RPC rather than a PATCH on status so the lifecycle is visible in the URL surface and the server retains exclusive control over which *_at columns get stamped.
Supported action values mirror the entity status constants: draft, waiting, started, completed, delivered, archived. Any other value is rejected with 422.
Frozen worksheets — transitions are blocked when the worksheet's linked invoice has been issued. A status flip on a frozen worksheet could trigger downstream side effects (e.g. moving back to draft would unwind the basis the invoice was minted from). Returns 409 conflict.
Request
- Base URL: https://api.officina.it
- URL: https://api.officina.it/v1/worksheets/{id}/transitions
- Auth: HTTP bearer
Request body
Response
Transition applied. Returns the post-transition entity.
Example response
{
"id": "a5d21e64-8f37-4b90-ae12-3c7d6b048f95"
}Changes
No recorded changes to this operation across all 1 revision of this API.