메인 콘텐츠로 건너뛰기
POST
/
admin
/
locales
로케일 추가
curl --request POST \
  --url https://api.headlesscommerce.io/v1/admin/locales \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "locale": "<string>",
  "name": "<string>",
  "is_default": true
}
'
{
  "id": "<string>",
  "locale": "<string>",
  "name": "<string>",
  "is_default": true,
  "created_at": "2023-11-07T05:31:56Z"
}

인증

Authorization
string
header
필수

API Key. Example: sk_live_xxxxx or pk_live_xxxxx

본문

application/json
locale
string
필수

Example: ko, en, ja

name
string
필수
is_default
boolean

응답

201 - application/json

생성됨

id
string
locale
string
name
string
is_default
boolean
created_at
string<date-time>