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.
Organization tokenx-Organization-TokenOptionalRun **Authorize Organization** in the Authorization folder.

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

Requires ResourceTypeDatabase.Edit permission.

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.