Docs

Create Resource Attribute

POST /resource-attributes

POST/resource-attributes

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.

Adds an attribute to the library. Place it on a type with Place Resource Type Attribute.

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.

Request Body

FieldTypeRequiredDescription
namestringRequiredDisplay label.
responseTypestringRequiredOne of `Select`, `MultiSelect`, `Text`, `RichText`, `Number`, `Date`, `DateTime`, `Checkbox`, `Link`, `File`, `MultiFile`. Can't be changed later.
optionsarrayOptional`{ label, type, value }`. Required for Select and MultiSelect, refused otherwise. `type` is `Text`, `Number` or `Date`.

Response

201 Created with { "id": "<attributeId>" }.

Error Codes

HTTP StatusDescription
400Invalid name, response type or options.