Docs
Update Resource Attribute
PUT /resource-attributes/{attributeId}
PUT
/resource-attributes/{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. |
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
ResourceTypeDatabase.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| attributeId | Guid | Required | The attribute. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Display label. |
| options | array | Optional | `{ id, label, type, value }`. Omit `id` for a new option. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments, or the change removes an option a variant pins. |
| 404 | Attribute not found. |