메인 콘텐츠로 건너뛰기
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
}

인증

Authorization
string
header
필수

API Key. Example: sk_live_xxxxx or pk_live_xxxxx

경로 매개변수

id
string
필수

Resource ID

본문

application/json
url
string<uri>
필수
alt_text
string
position
integer

응답

201 - application/json

생성됨

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