Enhanced behavior of the image upload endpoint for Products and Product Tailoring
As an evolution of a previous release, we enhanced the behavior of the image upload endpoints for the Product and Product Tailoring APIs to meet performance needs and improve the user experience.
When uploading Product or Product Tailoring images, the API now returns different status codes that indicate the status of the image upload at the time the API responds:
- A
200 OK
response is returned when all sizes of the image have been successfully uploaded to the CDN. - A
202 Accepted
response is returned when thesmall
size of the image has been successfully uploaded to the CDN, but the upload of the other sizes is still ongoing. These other sizes will be available soon thereafter.
The response status code depends on the size of the original image.
If the image is small, the API responds with 200 OK
, and if the image is larger, it responds with 202 Accepted
.
To ensure optimal performance, this change will not be applied to all Projects at once, but will be rolled out gradually over the next few weeks.
Therefore, some Projects may still respond with a 200 OK
status code after only the small
image size has been successfully created.
If you wish to learn more about this change, contact your Customer Success Manager.