Docs
Create Event Attribute
POST /eventAttributes
POST
/eventAttributesRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Organization token | x-Organization-Token | Optional | Run **Authorize Organization** in the Authorization folder. |
Creates a new attribute in the organization's event attribute library. The attribute type is set at creation and is immutable afterwards.
Returns 201 Created.
Requires OrganizationAdmin permission.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Display name for the attribute. |
| type | string | Required | Attribute type. One of: `Select`, `MultiSelect`, `Text`, `RichText`, `Number`, `Date`, `DateTime`, `Checkbox`, `Link`, `File`, `MultiFile`. Immutable after creation. |
| options | Option[] | Optional | Required only when `type` is `Select` or `MultiSelect`. |
Option
| Field | Type | Required | Description |
|---|---|---|---|
| value | string | Required | Option value. |
| color | string | Required | Display color. |