Variants
Read a variant
One variant by its id.
Authorization
bearer catalogue:readAuthorizationBearer <token>
A v1 API key; the scope named is the one the route needs.
In: header
Scope: catalogue:read
Path Parameters
variantId*string
Match
^[A-Za-z0-9_-]{1,64}$Length
1 <= length <= 64Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/variants/string"{ "id": "string", "liveMode": true, "productId": "string", "name": "string", "description": "string", "externalId": "string", "features": [ { "value": "string" } ], "coverImageKey": "string", "coverImageUrl": "http://example.com", "archivedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Update a variant PATCH
Changes the fields sent and leaves the rest. Send `expectedUpdatedAt` as the `updatedAt` you last read; a row changed since is refused with `STALE_WRITE` and the current row.
Archive a variant POST
Archives the variant. Send `archiveOffers: true` to archive the offers that name it in the same write. Repeating it returns the row as it stands.