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.
Event tokenx-Event-TokenOptionalRun **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

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.