collections
Collections

Upload Product Images

Upload product images to create a new collection.

This endpoint allows users to upload up to 10 product images, which will:

  1. Upload each image to S3
  2. Create a new collection in Saphire with the "Uploaded Products" group
  3. Return the collection details

Request Body:

  • collection_name: Name for the new collection (required)
  • images: List of base64-encoded images (1-10 images, required)
  • formats: Optional list of image formats (png, jpg, etc.)
  • description: Optional description for the collection

Returns:

  • Collection details including collection_id, group_id, and uploaded image URLs
post/api/v1/collections/upload-product-images

Request

  • Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.trylapis.com/api/v1/collections/upload-product-images
  • Auth: HTTP bearer

Request body

collection_namestring required

Name for the new collection

imagesstring[] required

Base64-encoded images (max 10)

formatsstring[] nullable

Optional list of image formats (png, jpg, etc.) - must match images length if provided

descriptionstring nullable

Optional description for the collection

Response

Successful Response

collection_idinteger required

ID of the created collection

group_idinteger required

ID of the collection group

collection_namestring required

Name of the created collection

collection_slugstring required

URL-friendly slug of the collection

images_uploadedinteger required

Number of images successfully uploaded

saphire_website_idinteger required

Saphire website ID

Changes

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