New: Stripe & TossPayments integration guides now available →
curl --request POST \
--url https://api.headlesscommerce.io/v1/admin/products/{id}/images \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"alt_text": "<string>",
"position": 123
}
'{
"id": "<string>",
"url": "<string>",
"alt_text": "<string>",
"position": 123,
"width": 123,
"height": 123
}Registers an image URL. For file uploads, use the separate Media API.
curl --request POST \
--url https://api.headlesscommerce.io/v1/admin/products/{id}/images \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"alt_text": "<string>",
"position": 123
}
'{
"id": "<string>",
"url": "<string>",
"alt_text": "<string>",
"position": 123,
"width": 123,
"height": 123
}