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. |
| Event token | x-Event-Token | Optional | Run **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually. |
Returns the type's live variants, including the hidden base variant.
Event scoping: This endpoint does not include
{eventId} in the URL. The event is determined automatically from your x-Event-Token.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. |