Skip to main content
POST
/
admin
/
products
/
{id}
/
images
상품 이미지 추가
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
}

Authorizations

Authorization
string
header
required

API Key. 예: sk_live_xxxxx 또는 pk_live_xxxxx

Path Parameters

id
string
required

리소스 ID

Body

application/json
url
string<uri>
required
alt_text
string
position
integer

Response

201 - application/json

Created

id
string
url
string
alt_text
string
position
integer
width
integer
height
integer