Docs
Associate Variant Rate Card
POST /resourceTypes/{resourceTypeId}/variants/{variantId}/rate-cards
POST
/resourceTypes/{resourceTypeId}/variants/{variantId}/rate-cardsRequired 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. |
Links one of the type's own rate cards to a variant. isDefault makes it the variant's default.
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 |
|---|---|---|---|
| rateCardId | Guid | Required | A card the variant's type owns. |
| isDefault | bool | Optional | Make it the variant's default. |
Response
201 Created. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Already linked, or a card from another type. |
| 404 | Type, variant or card not found. |