Docs
Add Constraint
POST /constraints
POST
/constraintsRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually. |
Creates a new constraint affecting one or more tasks. For Task type constraints, constrainedByTaskId identifies the blocking task and must reference an existing task. All constrainedTaskIds must also reference existing tasks.
Returns 201 Created on success.
Requires EventProjectManagementAdmin permission on the event.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Constraint name. |
| description | string | Optional | Details about the constraint. |
| type | string | Required | Constraint type (e.g. `Task`). |
| constrainedByTaskId | Guid? | Optional | Blocking task ID. Required when `type` is `Task`. |
| constrainedTaskIds | Guid[] | Required | IDs of tasks affected by this constraint. All must exist. |