novinzodevelopers
ResellersReferenceReseller API

Tag Keys

POST/storefront-public/api/v1/keys/tags

Adds and removes tags on up to 200 of the caller's own keys at once, and answers those keys as tagged. Their notes are left as they are. It is not a support action and costs nothing. Every key changes or none does: a key of anyone else, or of another store, is not found, and a key that would carry more than 20 tags fails the request with TagLimitExceededError naming every such key. A request that adds and removes the same tag, or names no tag, is refused with InvalidRequestError.

Authorization

bearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

licenseIds*array<>
Items1 <= items <= 200
add*array<string>
Itemsitems <= 20
remove*array<string>
Itemsitems <= 20

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/storefront-public/api/v1/keys/tags" \  -H "Content-Type: application/json" \  -d '{    "licenseIds": [      "string"    ],    "add": [      "string"    ],    "remove": [      "string"    ]  }'
[  {    "id": "string",    "code": "string",    "skuId": "string",    "skuName": "string",    "purpose": "sale",    "purchaseId": "string",    "status": "unused",    "durationMinutes": 1,    "activatedAt": "string",    "expiresAt": "string",    "holderDisplay": "string",    "lastSeenAt": "string",    "note": "string",    "tags": [      "string"    ],    "refreshedAt": "string",    "createdAt": "string"  }]