Docs
Reassign Resource Variant
PUT /resources/{resourceId}/variant
PUT
/resources/{resourceId}/variantRequired 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. |
Moves a resource to another variant of its type. The resource's variant-axis values are rewritten from the target variant.
Requires
ResourceInventory.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceId | Guid | Required | The org resource. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| resourceVariantId | Guid | Required | A live variant of the resource's type. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | A variant of another type. |
| 404 | Resource or variant not found. |