Skip to main content
PATCH
Update a product

Authorizations

Authorization
string
header
required

Bearer credential for the public API: a live COPE API key (ck_live_*; keys issued earlier as cope_sk_live_* keep working). Dashboard sign-in tokens are not accepted.

Headers

Idempotency-Key
string

Optional. At most 255 characters of valid UTF-8 with no NUL byte. When sent, a retry that carries the same key and the same body returns the original response instead of performing the write a second time, and the same key with a different body is refused with 409 idempotency_conflict. Keys are remembered for 24 hours. Without the header the write is performed every time it is sent.

Maximum string length: 255

Path Parameters

id
string
required

id public identifier.

Pattern: ^prod_[A-Za-z0-9]{8,32}$
Example:

"prod_A1b2C3d4"

Body

application/json
product
object
required

Response

Successful response

data
object
required