novinzodevelopers
Your store's APIApps referenceReseller catalog

Update Product

PUT/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

productId*string
Match^([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.

name*string
visibility*||
skus*array<>
Items1 <= items <= 20

Response 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"}