<- Catalog API

Catalog API

Update catalog imageBeta

PUT

 /v2/catalog/images/{image_id}

Uploads a new image file to replace the existing one in the specified CatalogImage object.

This UpdateCatalogImage endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.

Permissions:ITEMS_WRITE
Try in API Explorer
Link to section

Path parameters

Example code

Link to section

image_id

string

Required

The ID of the CatalogImage object to update the encapsulated image file.

Link to section

Request body

Link to section

idempotency_key

string

Required

A unique string that identifies this UpdateCatalogImage request. Keys can be any valid string but must be unique for every UpdateCatalogImage request.

See Idempotency keys for more information.

Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

image

The newly updated CatalogImage including a Square-generated URL for the encapsulated image file.