Substituir produto
Substitui a representação inteira de um produto da conta da chave, então envie todos os campos obrigatórios, e não apenas os que mudam. Um produto de outra conta responde 404 sem escrever nada. Exige o escopo products:write e o header Idempotency-Key.
Authorizations
A chave de API da conta, no formato sk_{modo}_{prefixo}.{segredo}.
Headers
Chave única da operação. Obrigatória em toda requisição que altera dados; sem ela a resposta é 422 idempotency_key_required. Um reenvio com a mesma chave e o mesmo corpo repete a resposta guardada.
255Path Parameters
Body
Body of PUT /v2/public/products/{id}. A PUT replaces the whole representation, so it accepts exactly what a create accepts, price included; the source api declared its update request the same way (SHA 70cd772).
The price is not part of the attribute write in the core (it moves through its own operation so the acquirer is re-synced), so the controller applies it separately when it differs from what is stored.
255255Either a base64 data URI (uploaded to storage) or an already stored path echoed back. Which one it is, is Catalog's decision.
x >= 1x >= 1unique, recurring x >= 0brl, usd, eur physical, digital draft, published nothing, memberkit, cademi, rocketmember, astronmembers, download, external 7, 14, 21, 30 daily, weekly, fortnightly, monthly, twomonthly, quarterly, semiannual, yearly, null 255255255255x >= 0Three fields the source api never accepted, added because the read answers them: a product created here would otherwise come back with a sku, a trial and a deliverable the caller had no way to set.
2553, 7, 14, 30, null Response
ApiProductResource