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

# Guardar overlay de traducción

> Crea o actualiza un overlay de traducción de locale para una app.

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

Autenticación: se requiere API key (`Authorization: Bearer <API Key>`). Solo el autor de la app.

Escribe campos de tarjeta y README opcional de un locale. La línea base del hash es el workspace (cae al último release si no hay borrador).

## Solicitud

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

<ParamField path="locale" type="string" required>
  Código de locale.
</ParamField>

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

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

### Ejemplo de solicitud

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

## Respuesta

### 200 correcto

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

### Errores

| HTTP | `code`         | `category`  | Descripción                                                    |
| ---- | -------------- | ----------- | -------------------------------------------------------------- |
| 401  | `unauthorized` | `forbidden` | API key ausente o no válida.                                   |
| 404  | `*-not-found`  | `not_found` | El destino no existe o es invisible para la credencial actual. |

Las respuestas de error usan `{"error": {code, category, message, retryable}}`. Véase <a href="/docs/es/datahub/api/reference/introduction#errors">Errores</a>.

## Bibliotecas cliente

Los SDK de Python y JavaScript aún no encapsulan este endpoint. Llame a REST directamente.
