API reference
POSTRequires Bearer token
Create a model step
/api/workflows/models/{model}/steps/create
type is unidirectionnel or conditionnel. users / roles / actions may be JSON strings.
Path parameters
| Field | Type | Description |
|---|---|---|
model Required | string | Path parameter model. |
Query parameters
This endpoint has no query parameters.
Request body
| Field | Type | Description |
|---|---|---|
name Required | string | Step name, unique per model. e.g. "Legal review" |
description | string | Description. |
users Required | array | Candidate user ids. e.g. [4,5] |
roles | array | Candidate role ids. |
type Required | string | unidirectionnel or conditionnel.e.g. "unidirectionnel" |
actions | array | Optional [{ "libelle": "Signer", "action": "sign" }]. |
Responses
| Status | Meaning |
|---|---|
| 201 | Step created |
| 401 | Missing or invalid Bearer token. |