> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 번역 저장

> App 로케일 번역 오버레이 생성/업데이트.

**`PUT`** `https://api-datahub.octoparse.com/v1/data-apps/{app_id}/translations/{locale}`

인증: API 키 필요(`Authorization: Bearer <API Key>`). App 작성자만.

로케일 하나 카드 필드와 선택 README 기록. 해시 기준은 워크스페이스(없으면 최신 Release). `stale=true`는 미게시 드래프트 대상. 소스 로케일은 여기서 덮어쓸 수 없음.

## 요청

<ParamField path="app_id" type="string" required>
  필드
</ParamField>

<ParamField path="locale" type="string" required>
  로캘 코드.
</ParamField>

<ParamField body="entries" type="object" required>
  필드
</ParamField>

<ParamField body="expected_revision" type="integer">
  필드
</ParamField>

### 요청 예시

```bash theme={null}
curl -X PUT \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entries": {"identity.name": "Product Review Lookup", "identity.summary": "Fetch public reviews by product id"}, "readme": "# Product Review Lookup\n…"}' \
  "https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/translations/en"
```

## 응답

### 200 성공

```json theme={null}
{
  "data": {
    "locale": "string",
    "origin": "author",
    "revision": 0,
    "based_on_version": "string",
    "based_on_hash": "string",
    "stale": false,
    "stale_paths": [
      "string"
    ],
    "warnings": [
      {
        "code": "string",
        "params": {}
      }
    ]
  }
}
```

### 오류

| HTTP | `code`         | `category`  | 설명                     |
| ---- | -------------- | ----------- | ---------------------- |
| 401  | `unauthorized` | `forbidden` | API 키 누락 또는 무효.        |
| 404  | `*-not-found`  | `not_found` | 대상이 없거나 현재 자격에 보이지 않음. |

오류 응답은 `{"error": {code, category, message, retryable}}`입니다. <a href="/docs/ko/datahub/api/reference/introduction#errors">오류</a> 참고.

## 클라이언트 라이브러리

Python / JavaScript SDK는 아직 이 엔드포인트를 감싸지 않습니다. REST를 직접 호출하세요.
