Skip to main content

Edit Product Gallery Item

API operation: Open the endpoint in Scalar

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

NameTypeRequiredDescription
business_idintegerYes—
category_idintegerYes—
product_idintegerYes—
gallery_idintegerYes—

Request body fields

NameTypeRequired
descriptionanyNo
fileanyNo
product_idintegerNo
titleanyNo
typeintegerNo
videoanyNo

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference