Docs

Reassign Resource Variant

PUT /resources/{resourceId}/variant

PUT/resources/{resourceId}/variant

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.

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

FieldTypeRequiredDescription
resourceIdGuidRequiredThe org resource.

Request Body

FieldTypeRequiredDescription
resourceVariantIdGuidRequiredA live variant of the resource's type.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
400A variant of another type.
404Resource or variant not found.