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

Body Required

  • image string Required

Responses

  • 401

    Authorization information is missing or invalid.

  • 404

    Product not found

  • 500

    Server Error

  • 200

    successful operation

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • id integer
      • product_id integer
      • product_draft_id integer
      • image string
      • url string
  • 400

    Bad Request

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"
}
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"
  }
}