Docs
Repoint Variant Component
PUT /resourceTypes/{resourceTypeId}/variants/{variantId}/components/{componentId}
PUT
/resourceTypes/{resourceTypeId}/variants/{variantId}/components/{componentId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Organization token | x-Organization-Token | Optional | Run **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
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | The composite type. |
| variantId | Guid | Required | A non-base variant of it. |
| componentId | Guid | Required | The component. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| targetResourceTypeId | Guid | Required | A non-composite type. The component's own target means no repoint. |
| targetResourceVariantIds | Guid[] | Optional | Variants of the target: empty = any, one = pinned, several = alternatives. |
| quantity | int? | Optional | Per composite unit for this variant. Null keeps the component's. |
| isExcluded | bool | Optional | True drops the slot from this variant. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | The base variant, a composite target, a variant not of the target, or a component of another type. |
| 404 | Type, variant, component or target not found. |
| 403 | Missing permission. |