Offer keys

Add keys

Adds keys to the offer’s stock. The answer counts each key sent by what became of it; key text never comes back.

Authorization

bearer catalogue:write
AuthorizationBearer <token>

A v1 API key; the scope named is the one the route needs.

In: header

Scope: catalogue:write

Path Parameters

offerId*string
Match^[A-Za-z0-9_-]{1,64}$
Length1 <= length <= 64

Header Parameters

Idempotency-Key*string

Names the act so a retry under it lands on the stored answer (idempotency-key).

Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

POST
/v1/offers/{offerId}/keys
curl -X POST "https://example.com/v1/offers/string/keys" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "keys": [      "string"    ]  }'
{  "offerId": "string",  "received": 0,  "imported": 0,  "duplicatesInBatch": 0,  "duplicatesInPool": 0}