Docs

Update Variant

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

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

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.

Renames a variant and sets its own rate card.

Requires ResourceTypeDatabase.Edit permission.

Path Parameters

FieldTypeRequiredDescription
resourceTypeIdGuidRequiredThe resource type.
variantIdGuidRequiredThe variant.

Request Body

FieldTypeRequiredDescription
namestringRequiredVariant name.
rateCardIdGuid?OptionalOne of the type's own cards, or null.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
400Invalid arguments or a card from another type.
404Variant not found.