Docs
Add Task Attribute
POST /taskAttributes
POST
/taskAttributesRequired 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 custom attribute definition for tasks. Options are only relevant for Select and MultiSelect types. Returns 201 Created on success.
Requires EventProjectManagementAdmin permission on the event.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Attribute display name. |
| type | string | Required | Attribute type (`Select`, `MultiSelect`, `Text`, `RichText`, `Number`, `Date`, `DateTime`, `Checkbox`, `Link`). |
| isRequired | bool | Required | Whether this attribute must be set on every task. |
| options | Option[] | Optional | Options for `Select`/`MultiSelect` types. |
Option
| Field | Type | Required | Description |
|---|---|---|---|
| value | string | Required | Display value. |
| color | string | Required | Hex color. |