Docs

Update Resource Type Attribute

PUT /resourceTypes/{resourceTypeId}/sections/{sectionId}/attributes/{resourceAttributeId}

PUT/resourceTypes/{resourceTypeId}/sections/{sectionId}/attributes/{resourceAttributeId}

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.

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 ResourceTypeDatabase.Edit permission.

Path Parameters

FieldTypeRequiredDescription
resourceTypeIdGuidRequiredThe resource type.
sectionIdGuidRequiredThe section.
resourceAttributeIdGuidRequiredThe placed library attribute.

Request Body

FieldTypeRequiredDescription
isRequiredboolRequiredWhether a value is required.
pricingRolestringRequired`None`, `Variant`, `Modifier` or `Unit`.
useCasesstring[]RequiredWhere the attribute is active: `Procurement`, `Inventory`. A `Variant` attribute needs both. A composite type's attributes are `Procurement` only.
indexintRequiredPosition in the section.
sectionIdGuid?OptionalTarget section for an atomic move. Null keeps it.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
400Invalid role or use cases, or a role change a live variant blocks.
404Type, section or placement not found.