POST
/
products
/
{id}
curl --request POST \
  --url https://pay.chargily.net/test/api/v2/products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "images": [
    "<string>"
  ],
  "metadata": {}
}'
{
    "id": "01hhyjnrdbc1xhgmd34hs1v3en",
    "entity": "product",
    "livemode": false,
    "name": "Super Product",
    "description": null,
    "images": [],
    "metadata": [],
    "created_at": 1702907011,
    "updated_at": 1702911993
}

Path parameters

id
string

The ID of the product.

Body parameters

name
string

The name of the product.

description
string

The description of the product.

images
string[]

The images of the product.

metadata
key-value array

A Set of key-value pairs that can be used to store additional information about the product.

Returns

If the update is successful, it returns a product object with the updated information.