Skip to main content

Create Product Gallery Item

API operation: Open the endpoint in Scalar

Use POST /business/{business_id}/categories/{category_id}/products/{product_id}/gallery to add an item to a product gallery. The operation documented here is ProductGallery.register.

The documented schema restricts creation to administrators and business managers. Business-manager access is scoped through the product's business.

The request schema describes image and video gallery items: type 1 requires file, while type 2 requires a valid video URL. Optional title and description fields provide item details.

OpenAPI reference​

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

Path parameters

NameTypeRequiredDescription
business_idintegerYes—
category_idintegerYes—
product_idintegerYes—

Request body fields

NameTypeRequired
descriptionanyNo
fileanyNo
product_idintegerYes
titleanyNo
typeintegerYes
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