Docs
Update Resource Type Attribute
PUT /resourceTypes/{resourceTypeId}/sections/{sectionId}/attributes/{resourceAttributeId}
PUT
/resourceTypes/{resourceTypeId}/sections/{sectionId}/attributes/{resourceAttributeId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually. |
Edits a placement. A sectionId different from the route's moves the placement to that section in the same call. Changing the role away from Modifier deletes the placement's modifiers.
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.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | The resource type. |
| sectionId | Guid | Required | The section. |
| resourceAttributeId | Guid | Required | The placed library attribute. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| 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. |
| sectionId | Guid? | Optional | Target section for an atomic move. Null keeps it. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid role or use cases, or a role change a live variant blocks. |
| 404 | Type, section or placement not found. |