Upload file
GET/api/v2/upload
Returns a v4 signed post policy for uploading a file to our CDN.
Files uploaded via this endpoint are ephemeral and will be deleted after a minimum of 24 hours.
Once the file is uploaded you can use that url on supported endpoints, where it will be moved to a permanent location on our cdn and persisted until the associated entity is deleted.
For example, if you set the photo_url
on a product to the temporary uploaded file, the file will be
moved from _tmp/2kzd5fr9lu37d1j2
to products/bk8h0y2r68ke/photo_url/0?v=vd2a2
.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500