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

# Salva overlay di traduzione

> Crea o aggiorna un overlay di traduzione locale per un’app.

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

Autenticazione: API key obbligatoria (`Authorization: Bearer <API Key>`). Solo autore dell’app.

Scrive i campi della scheda e un README facoltativo per una locale. La base dell'hash è il workspace (con ripiego sull'ultima release). `stale=true` significa che l'overlay riguarda modifiche del draft non pubblicate. La locale sorgente non può essere usata come destinazione.

## Richiesta

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

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

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

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

### Esempio di richiesta

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

## Risposta

### 200 successo

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

### Errori

| HTTP | `code`         | `category`  | Descrizione                                                    |
| ---- | -------------- | ----------- | -------------------------------------------------------------- |
| 401  | `unauthorized` | `forbidden` | API key mancante o non valida.                                 |
| 404  | `*-not-found`  | `not_found` | Il target non esiste o è invisibile alla credenziale corrente. |

Le risposte di errore usano `{"error": {code, category, message, retryable}}`. Vedi <a href="/docs/it/datahub/api/reference/introduction#errors">Errori</a>.

## Librerie client

Gli SDK Python e JavaScript non wrappano ancora questo endpoint. Chiama REST direttamente.
