Docs

Place Resource Type Attribute

POST /resourceTypes/{resourceTypeId}/sections/{sectionId}/attributes

POST/resourceTypes/{resourceTypeId}/sections/{sectionId}/attributes

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.

Places a library attribute in a section. An attribute is placed at most once per type.

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.

Request Body

FieldTypeRequiredDescription
resourceAttributeIdGuidRequiredA non-archived library attribute.
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.

Response

201 Created. No response body.

Error Codes

HTTP StatusDescription
400Archived attribute, already placed, or an invalid role and use-case combination.
404Type, section or attribute not found.