Docs

Update Resource Attribute

PUT /resource-attributes/{attributeId}

PUT/resource-attributes/{attributeId}

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Renames an attribute and replaces its option list. responseType can't change. Send an existing option's id to keep it; an option left out is removed, which is refused while a live variant pins it.

Requires EventSettings permission on the event.
Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Path Parameters

FieldTypeRequiredDescription
attributeIdGuidRequiredThe attribute.

Request Body

FieldTypeRequiredDescription
namestringRequiredDisplay label.
optionsarrayOptional`{ id, label, type, value }`. Omit `id` for a new option.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
400Invalid arguments, or the change removes an option a variant pins.
404Attribute not found.