# Retry failed language translation

Re-triggers translation for a single failed locale. Up to 2 retries are allowed per language; each retry deducts credits for the locale.

URL: /reference/job-workflows/retryLanguageTranslation

## POST /v2/translate/media/{media_id}/languages/{locale}/retry

```json
{
  "openapi": "3.2.0",
  "info": {
    "title": "Retry failed language translation",
    "description": "Lingopal v2 public API for text translation, storage uploads, registered jobs, job workflows, and job outputs.",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://vod-api.lingopal-dev.com"
    }
  ],
  "security": [
    {
      "APIKeyHeader": []
    }
  ],
  "paths": {
    "/v2/translate/media/{media_id}/languages/{locale}/retry": {
      "post": {
        "tags": [
          "Job Workflows"
        ],
        "summary": "Retry failed language translation",
        "description": "Re-triggers translation for a single failed locale. Up to 2 retries are allowed per language; each retry deducts credits for the locale.",
        "operationId": "retryLanguageTranslation",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Media Id"
            }
          },
          {
            "name": "locale",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Locale"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Started single-locale translation retry workflow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetryLanguageTranslationResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication token."
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Job Workflows",
      "description": "Start translation and subtitle workflows for registered jobs."
    }
  ],
  "components": {
    "schemas": {
      "RetryLanguageTranslationResponse": {
        "properties": {
          "status": {
            "type": "string",
            "const": "started",
            "title": "Status",
            "default": "started"
          },
          "locale": {
            "type": "string",
            "title": "Locale",
            "description": "Locale code being retried."
          },
          "retry_count": {
            "type": "integer",
            "title": "Retry Count",
            "description": "Current retry count after increment."
          },
          "attempts_remaining": {
            "type": "integer",
            "title": "Attempts Remaining",
            "description": "Number of retries still available."
          },
          "message": {
            "type": "string",
            "title": "Message",
            "description": "Deployment name for the triggered workflow."
          }
        },
        "type": "object",
        "required": [
          "locale",
          "retry_count",
          "attempts_remaining",
          "message"
        ],
        "title": "RetryLanguageTranslationResponse"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      }
    }
  }
}
```
