PATCH /product_drafts/:id/product_image

PATCH /product_drafts/{id}/product_image

Updates the product_image

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

application/json

Body Required

Responses

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