Docs

Reassign Resource Variant

PUT /resources/{resourceId}/variant

PUT/resources/{resourceId}/variant

Moves a resource to another variant of its type, and rewrites its variant-axis values from the target variant. The resourceVariantId must be a live variant of the resource's type, from the Organization API's ResourceTypes_GetVariants. Needs the resource inventory edit permission. On a temporary unit (one an org order put in inventory) this is refused with "This unit comes from {order}. Change the order instead."

Path Parameters

FieldTypeRequiredDescription
resourceIduuidRequired

Request Body

FieldTypeRequiredDescription
resourceVariantIduuidOptional