Docs
Get Variants
GET /resourceTypes/{resourceTypeId}/variants
GET
/resourceTypes/{resourceTypeId}/variantsReturns the type's live variants, including the hidden base variant, with each variant's axis values and, for a composite, its component repoints (a component with no entry uses its own target).
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | uuid | Required |
Response
Type: GetVariantsResponse[]
GetVariantsResponse
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| resourceTypeId | uuid | |
| name | string| null | |
| isBase | boolean | |
| rateCardId | uuid| null | |
| values | GetVariantsResponseVariantValue[]| null | |
| componentTargets | ComponentTargetResponse[]| null |
GetVariantsResponseVariantValue
| Field | Type | Description |
|---|---|---|
| resourceAttributeId | uuid | |
| value | string| null |
ComponentTargetResponse
| Field | Type | Description |
|---|---|---|
| resourceComponentId | uuid | |
| targetResourceTypeId | uuid | |
| targetResourceTypeName | string| null | |
| targetResourceVariantIds | uuid[]| null | |
| targetResourceVariantNames | string[]| null | |
| quantity | integer| null | |
| isExcluded | boolean |