Docs
Add Event Attribute
POST /Organizations/{organizationId}/eventAttributes
POST
/Organizations/{organizationId}/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 custom attribute definition for the organization. Options are only relevant for Select and MultiSelect attribute types.
Requires OrganizationAdmin permission.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| organizationId | Guid | Required | The organization to add the attribute to. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Display name of the attribute. |
| type | string | Required | Attribute type (`Select`, `MultiSelect`, `Text`, `RichText`, `Number`, `Date`, `DateTime`, `Checkbox`, `Link`). |
| isRequired | bool | Required | Whether this attribute must be set when creating an event. |
| options | Option[] | Optional | Options for `Select`/`MultiSelect` types. |
Option
| Field | Type | Required | Description |
|---|---|---|---|
| value | string | Required | Display value of the option. |
| color | string | Required | Hex color for the option badge. |