Update Product
/admin/products/{productId}Replaces the product's name, visibility and durations. A duration naming its skuId keeps its SKU, at its own length, with this price and minimum; one without a skuId is a new SKU; a duration on sale that is left out is archived, and keys already bought of it keep working.
Path Parameters
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= items <= 20Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/admin/products/string" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "visibility": { "_tag": "Everyone" }, "skus": [ { "durationMinutes": 1, "listPriceMinor": 0, "minOrderQuantity": 1 } ] }'{ "id": "string", "name": "string", "connectionId": "string", "providerProductId": "string", "visibility": { "_tag": "Everyone" }, "skus": [ { "id": "string", "productId": "string", "connectionId": "string", "providerProductId": "string", "name": "string", "durationMinutes": 1, "listPriceMinor": 0, "minOrderQuantity": 1, "visibility": { "_tag": "Everyone" }, "archivedAt": "string", "createdAt": "string", "updatedAt": "string" } ], "archivedAt": "string", "createdAt": "string", "updatedAt": "string"}Preview Pricing POST
What one reseller would pay for these lines right now.
Update Tier PUT
Replaces the tier's name, discount and whole policy with these, for every reseller of the tier at once: a field left as it was must be sent as it was. A tier's policy says what its resellers may do: a support action not in allowedActions is refused; a quota limits an allowed action per UTC day, ISO week or calendar month, and an allowed action without a quota has no limit. Past an hwid_reset quota, a reset costs hwidResetOverageMinor, or is refused when that is null. A reseller's overrides replace single fields of its tier's policy (GetReseller).
