Docs

Associate Variant Rate Card

POST /resourceTypes/{resourceTypeId}/variants/{variantId}/rate-cards

POST/resourceTypes/{resourceTypeId}/variants/{variantId}/rate-cards

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.

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

FieldTypeRequiredDescription
resourceTypeIdGuidRequiredThe resource type.
variantIdGuidRequiredThe variant.

Request Body

FieldTypeRequiredDescription
rateCardIdGuidRequiredA card the variant's type owns.
isDefaultboolOptionalMake it the variant's default.

Response

201 Created. No response body.

Error Codes

HTTP StatusDescription
400Already linked, or a card from another type.
404Type, variant or card not found.