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

# Übersetzungs-Overlay speichern

> Locale-Übersetzungs-Overlay für eine App erstellen oder aktualisieren.

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

Authentifizierung: API-Schlüssel erforderlich (`Authorization: Bearer <API Key>`). Nur App-Autor.

Schreibt Kartenfelder und optional eine README für eine Locale. Hash-Basis ist der Workspace (Fallback auf das neueste Release). `stale=true` bedeutet, dass sich das Overlay auf unveröffentlichte Draft-Änderungen bezieht. Die Quell-Locale kann nicht als Ziel verwendet werden.

## Anfrage

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

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

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

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

### Beispielanfrage

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

## Antwort

### 200 Erfolg

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

### Fehler

| HTTP | `code`         | `category`  | Beschreibung                                                          |
| ---- | -------------- | ----------- | --------------------------------------------------------------------- |
| 401  | `unauthorized` | `forbidden` | Fehlender oder ungültiger API-Schlüssel.                              |
| 404  | `*-not-found`  | `not_found` | Ziel existiert nicht oder ist für die aktuelle Credential unsichtbar. |

Fehlerantworten nutzen `{"error": {code, category, message, retryable}}`. Siehe <a href="/docs/de/datahub/api/reference/introduction#errors">Fehler</a>.

## Client-Bibliotheken

Die Python- und JavaScript-SDKs wrappen diesen Endpoint noch nicht. REST direkt aufrufen.
