PATCH /products/:id_or_alias/product_image

PATCH /products/{id_or_alias}/product_image

Updates the product_image

Path parameters

Body Required

Responses

PATCH /products/{id_or_alias}/product_image
curl \
 -X PATCH https://api.cosmily.com/api/v1/products/{id_or_alias}/product_image \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"image":"string"}'
Request example
{
  "image": "string"
}
Request examples
{
  "image": "string"
}
Response examples (200)
{
  "data": {
    "id": 42,
    "product_id": 42,
    "product_draft_id": 42,
    "image": "string",
    "url": "string"
  }
}
Response examples (200)
{
  "data": {
    "id": 42,
    "product_id": 42,
    "product_draft_id": 42,
    "image": "string",
    "url": "string"
  }
}