Docs

Add Constraint

POST /constraints

POST/constraints

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **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

FieldTypeRequiredDescription
namestringRequiredConstraint name.
descriptionstringOptionalDetails about the constraint.
typestringRequiredConstraint type (e.g. `Task`).
constrainedByTaskIdGuid?OptionalBlocking task ID. Required when `type` is `Task`.
constrainedTaskIdsGuid[]RequiredIDs of tasks affected by this constraint. All must exist.