Docs
Create Variants
POST /resourceTypes/{resourceTypeId}/variants
POST
/resourceTypes/{resourceTypeId}/variantsCreates one or more variants, one per combination of the type's Variant-role attributes. Every Variant-role attribute on the type needs a value, and no two variants may pin the same combination. The rateCardId on a variant comes from Resources_GetResourceTypeRateCards.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| variants | CreateVariantsRequestVariantInput[] | Optional |
CreateVariantsRequestVariantInput
| Field | Type | Description |
|---|---|---|
| name | string| null | |
| rateCardId | uuid| null | |
| values | CreateVariantsRequestVariantValue[]| null |
CreateVariantsRequestVariantValue
| Field | Type | Description |
|---|---|---|
| resourceAttributeId | uuid | |
| value | string| null |