Skip to Content
Sayren 유저가이드
안내 섹션

안내 섹션 번역 저장

언어(`locale`, BCP 47) 하나의 번역을 통째로 바꾼다. 없으면 만든다. 빠진 칸은 null(기본 언어 값으로 대체)이다. 본문은 섹션과 같은 규칙으로 정화한다. 상점 기본 언어는 400 `LOCALE_IS_DEFAULT`다.

PUT
/v1/info-sections/{infoSectionId}/localizations/{locale}

언어(locale, BCP 47) 하나의 번역을 통째로 바꾼다. 없으면 만든다. 빠진 칸은 null(기본 언어 값으로 대체)이다. 본문은 섹션과 같은 규칙으로 정화한다. 상점 기본 언어는 400 LOCALE_IS_DEFAULT다.

Authorization

accessToken
headerAuthorizationBearer <JWT>

Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)

Path Parameters

infoSectionId*string
locale*string

Header Parameters

X-Store-Id*string

대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다

Request Body

application/json
  1. body
title?|
Length1 <= length <= 100
body?string|null
bodyJson?string|null

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
Example Request
curl -X PUT 'https://api.sayren.io/v1/info-sections/string/localizations/string' \
  -H 'X-Store-Id: string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "meta": {
    "status": 200,
    "code": "OK",
    "message": "OK",
    "isSuccess": true
  },
  "data": {
    "locale": "string",
    "title": "string",
    "body": "string",
    "bodyJson": "string",
    "updatedAt": "string"
  },
  "error": null
}