> ## 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

> Avanzar ciclo de vida y bloquear edición según reglas.

Los endpoints de workflow cuelgan de un contrato y requieren workflowAutomation donde se indique.

| Endpoint                                  | Cuerpo/parámetros                   | Permiso                                   |
| ----------------------------------------- | ----------------------------------- | ----------------------------------------- |
| `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`                      |
