Docs
Update Variant
PUT /resourceTypes/{resourceTypeId}/variants/{variantId}
PUT
/resourceTypes/{resourceTypeId}/variants/{variantId}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. |
Renames a variant and sets its own rate card.
Requires
ResourceTypeDatabase.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | The resource type. |
| variantId | Guid | Required | The variant. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Variant name. |
| rateCardId | Guid? | Optional | One of the type's own cards, or null. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments or a card from another type. |
| 404 | Variant not found. |