Docs
Place Resource Type Attribute
POST /resourceTypes/{resourceTypeId}/sections/{sectionId}/attributes
POST
/resourceTypes/{resourceTypeId}/sections/{sectionId}/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. |
Places a library attribute in a section. An attribute is placed at most once per type.
Requires
ResourceTypeDatabase.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | The resource type. |
| sectionId | Guid | Required | The section. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| resourceAttributeId | Guid | Required | A non-archived library attribute. |
| isRequired | bool | Required | Whether a value is required. |
| pricingRole | string | Required | `None`, `Variant`, `Modifier` or `Unit`. |
| useCases | string[] | Required | Where the attribute is active: `Procurement`, `Inventory`. A `Variant` attribute needs both. A composite type's attributes are `Procurement` only. |
| index | int | Required | Position in the section. |
Response
201 Created. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Archived attribute, already placed, or an invalid role and use-case combination. |
| 404 | Type, section or attribute not found. |