Docs

Create Event Attribute

POST /eventAttributes

POST/eventAttributes

Required Tokens

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

FieldTypeRequiredDescription
namestringRequiredDisplay name for the attribute.
typestringRequiredAttribute type. One of: `Select`, `MultiSelect`, `Text`, `RichText`, `Number`, `Date`, `DateTime`, `Checkbox`, `Link`, `File`, `MultiFile`. Immutable after creation.
optionsOption[]OptionalRequired only when `type` is `Select` or `MultiSelect`.

Option

FieldTypeRequiredDescription
valuestringRequiredOption value.
colorstringRequiredDisplay color.