Server API: Workflows
Your users enrolled in the app’s workflows by your servers.
| What it does | Route |
|---|---|
| Enrol people in a workflow | POST /server/v1/workflows/{workflow_id}/enrol |
Enrol people in a workflow
Section titled “Enrol people in a workflow”POST /server/v1/workflows/{workflow_id}/enrol
Enrols up to 500 people, by your ids for them, in a running workflow whose trigger is “Enrolled by staff”. Each is held to the workflow’s audience, exit rule and re-entry, so enrolling someone again is safe. Queued, and done within a minute; ids of nobody PurrCRM knows are answered and not enrolled. Needs a key with the workflows scope.
Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.
Parameters
| Name | In | Description |
|---|---|---|
workflow_id (required) | path |
Body (application/json): ServerEnrol
| Field | Type | Description |
|---|---|---|
external_ids (always) | array of string |
Answers
| Status | Body | Meaning |
|---|---|---|
| 202 | ServerEnrolled | Accepted |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 403 | problem | Refused: the app is switched off, or this is not allowed. |
| 404 | problem | Not found, or the part is switched off. |
| 409 | problem | Refused as things stand: the problem says why. |
| 429 | problem | Too many requests: wait for Retry-After. |