---
title: "Edit Product Gallery Item"
description: "Use POST /business/{business_id}/categories/{category_id}/products/{product_id}/gallery/{gallery_id} to update one product gallery item."
canonical: https://docs.ordering.co/api-reference/guides/update-product-gallery-item/
---

# Edit Product Gallery Item

> **API operation:** [Open the endpoint in Scalar](https://docs.ordering.co/api-reference/#tag/business/POST/business/{business_id}/categories/{category_id}/products/{product_id}/gallery/{gallery_id})

Use `POST /business/{business_id}/categories/{category_id}/products/{product_id}/gallery/{gallery_id}` to update one product gallery item. The current public operation is `ProductGallery.update`.

The final path parameter is `gallery_id`, the identifier of the gallery item.

This operation restricts updates to administrators and business managers and validates the specified product hierarchy. Image, video, title, description, and type fields depend on the request schema.

## OpenAPI reference

**Operation:** `POST /business/{business_id}/categories/{category_id}/products/{product_id}/gallery/{gallery_id}`

**Path parameters**

| Name          | Type    | Required | Description |
| ------------- | ------- | -------- | ----------- |
| `business_id` | integer | Yes      | —           |
| `category_id` | integer | Yes      | —           |
| `product_id`  | integer | Yes      | —           |
| `gallery_id`  | integer | Yes      | —           |

**Request body fields**

| Name          | Type    | Required |
| ------------- | ------- | -------- |
| `description` | any     | No       |
| `file`        | any     | No       |
| `product_id`  | integer | No       |
| `title`       | any     | No       |
| `type`        | integer | No       |
| `video`       | any     | No       |

**Responses**

| Code | Description                           |
| ---- | ------------------------------------- |
| 200  | OK (Envelope)                         |
| 400  | Bad Request (ErrorResponse)           |
| 401  | Unauthorized                          |
| 404  | Not Found                             |
| 429  | Too Many Requests (ErrorResponse)     |
| 500  | Internal Server Error (ErrorResponse) |
| 503  | Service Unavailable (ErrorResponse)   |

[Open this operation in the API reference](https://docs.ordering.co/api-reference/#tag/business/POST/business/{business_id}/categories/{category_id}/products/{product_id}/gallery/{gallery_id})
