Docs
Update Event Attribute
PUT /Organizations/{organizationId}/eventAttributes/{attributeId}
PUT
/Organizations/{organizationId}/eventAttributes/{attributeId}Required 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. |
Updates an existing event attribute definition. Options are managed as a full replacement with smart diffing: options with an id are updated in place, options without an id are created as new, and any existing options omitted from the request are deleted.
Requires OrganizationAdmin permission.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| organizationId | Guid | Required | The organization that owns the attribute. |
| attributeId | Guid | Required | The attribute to update. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Display name of the attribute. |
| type | string | Required | Attribute type. |
| isRequired | bool | Required | Whether this attribute is required on events. |
| options | Option[] | Optional | Full options list (replaces existing). |
Option
| Field | Type | Required | Description |
|---|---|---|---|
| id | Guid? | Optional | Provide to update an existing option; omit to create a new one. |
| value | string | Required | Display value. |
| color | string | Required | Hex color for the option badge. |