Skip to content

Attach an uploaded image to a product

POST
/admin/v1/products/{id}/images
curl --request POST \
--url https://your-store.example.com/admin/v1/products/example/images \
--header 'Content-Type: application/json' \
--data '{ "imageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "position": 0 }'
id
required
string
Media type application/json
object
imageId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
position
integer
0 <= 10000