Skip to main content

Product Gallery Model

Product gallery items attach an image or video to a product.

Operations​

ActionMethodGuide
ListGETGet Product Gallery Items
FindGETFind Product Gallery Item
CreatePOSTCreate Product Gallery Item
UpdatePOSTEdit Product Gallery Item
DeleteDELETEDelete Product Gallery Item

Shared fields​

  • id identifies the gallery record.

  • product_id associates the item with a product.

  • file carries image input or the stored image location.

  • video carries a video URL.

  • title and description provide visible context.

The controller validates type as an integer but does not limit accepted values to 1 and 2. Check the operation requirements before relying on either value.

Mutations require administrator or business-manager access and check hierarchy and ownership. Read access may differ by operation.