Docs

Repoint Variant Component

PUT /resourceTypes/{resourceTypeId}/variants/{variantId}/components/{componentId}

PUT/resourceTypes/{resourceTypeId}/variants/{variantId}/components/{componentId}

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.

Route 17. Sets what one variant uses for one component: the target type, its allowed variants, the quantity, or exclusion. The label stays the component's. A body equal to the component's own target, quantity and inclusion deletes the repoint. Applies to future procurements only.

Requires ResourceTypeDatabase.Edit permission.

Path Parameters

FieldTypeRequiredDescription
resourceTypeIdGuidRequiredThe composite type.
variantIdGuidRequiredA non-base variant of it.
componentIdGuidRequiredThe component.

Request Body

FieldTypeRequiredDescription
targetResourceTypeIdGuidRequiredA non-composite type. The component's own target means no repoint.
targetResourceVariantIdsGuid[]OptionalVariants of the target: empty = any, one = pinned, several = alternatives.
quantityint?OptionalPer composite unit for this variant. Null keeps the component's.
isExcludedboolOptionalTrue drops the slot from this variant.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
400The base variant, a composite target, a variant not of the target, or a component of another type.
404Type, variant, component or target not found.
403Missing permission.