> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alforse.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflow

> Avancer le cycle de vie d’un contrat et verrouiller les modifications.

Les endpoints de workflow sont sous un contrat et exigent workflowAutomation lorsque c’est indiqué.

| Endpoint                                  | Corps/paramètres                    | Autorisation                              |
| ----------------------------------------- | ----------------------------------- | ----------------------------------------- |
| `POST /contracts/:id/workflow/transition` | `note, transitionCode, toStageCode` | `contract_edit edit + workflowAutomation` |
| `POST /contracts/:id/workflow/lock`       | `locked, note`                      | `admin edit + workflowAutomation`         |
| `GET /contracts/:id/workflow/events`      | —                                   | `contract_view view`                      |
