Docs
Create Resource Attribute
POST /resource-attributes
POST
/resource-attributesRequired 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. |
Adds an attribute to the library. Place it on a type with Place Resource Type Attribute.
Requires
ResourceTypeDatabase.Edit permission.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Display label. |
| responseType | string | Required | One of `Select`, `MultiSelect`, `Text`, `RichText`, `Number`, `Date`, `DateTime`, `Checkbox`, `Link`, `File`, `MultiFile`. Can't be changed later. |
| options | array | Optional | `{ 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 Status | Description |
|---|---|
| 400 | Invalid name, response type or options. |