Docs
Get Variants
GET /resourceTypes/{resourceTypeId}/variants
GET
/resourceTypes/{resourceTypeId}/variantsRequired 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. |
Returns the type's live variants, including the hidden base variant.
Requires
ResourceTypeDatabase.Read permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | The resource type. |
Response Fields
| Field | Type | Description |
|---|---|---|
| id | Guid | The variant. |
| resourceTypeId | Guid | The owning type. |
| name | string | Variant name. |
| isBase | bool | The type's hidden base variant. |
| rateCardId | Guid| null | The variant's own card, if any. |
| values | array | `{ resourceAttributeId, value }`: the variant's axis values. |
| componentTargets | array | A composite variant's repoints: `{ resourceComponentId, targetResourceTypeId, targetResourceTypeName, targetResourceVariantIds[], targetResourceVariantNames[], quantity, isExcluded }`. A component with no entry uses its own target. |
| associatedRateCards | array | `{ rateCardId, name, isDefault }`: the cards linked to the variant (**Variant Rate Cards**). |