> ## 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.

# Save translation overlay

> Create or update a locale translation overlay for an app.

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

Authentication: API key required (`Authorization: Bearer <API Key>`). App author only.

Writes card fields and optional README for one locale. Hash baseline is workspace (falls back to latest Release). `stale=true` means the overlay targets unpublished draft changes. Source locale cannot be used as target.

## Request

<ParamField path="app_id" type="string" required>
  field
</ParamField>

<ParamField path="locale" type="string" required>
  Locale code.
</ParamField>

<ParamField body="entries" type="object" required>
  field
</ParamField>

<ParamField body="expected_revision" type="integer">
  field
</ParamField>

### Example request

```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"
```

## Response

### 200 success

```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": {}
      }
    ]
  }
}
```

### Errors

| HTTP | `code`         | `category`  | Description                                                      |
| ---- | -------------- | ----------- | ---------------------------------------------------------------- |
| 401  | `unauthorized` | `forbidden` | Missing or invalid API key.                                      |
| 404  | `*-not-found`  | `not_found` | Target does not exist or is invisible to the current credential. |

Error responses use `{"error": {code, category, message, retryable}}`. See <a href="/docs/en/datahub/api/reference/introduction#errors">Errors</a>.

## Client libraries

The Python and JavaScript SDKs do not wrap this endpoint yet. Call REST directly.
