admin-components

List the product photos of a component

Returns the stored filenames of the gallery file field and their public file URLs. An unknown id answers 500.

get/api/admin/components/{id}/gallery

Request

  • Base URL: https://voltplan.app
  • URL: https://voltplan.app/api/admin/components/{id}/gallery
  • Auth: HTTP bearer

Response

Current gallery.

successunknown required
gallerystring[] required

Stored filenames in display order; the first one is the cover image.

urlsstring[] required

Public file URLs <PocketBase>/api/files/<collectionId>/<id>/<filename>, same order as gallery.

Changes

No recorded changes to this operation across all 1 revision of this API.