# Republish translated job media

Regenerates already translated target media and requires completed translated artifacts for every target.

URL: /reference/job-workflows/republishJob

## POST /v2/jobs/{job_id}/republish

```json
{
  "openapi": "3.2.0",
  "info": {
    "title": "Republish translated job media",
    "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/jobs/{job_id}/republish": {
      "post": {
        "tags": [
          "Job Workflows"
        ],
        "summary": "Republish translated job media",
        "description": "Regenerates already translated target media and requires completed translated artifacts for every target.",
        "operationId": "republishJob",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Reusable registered job ID.",
              "title": "Job Id"
            },
            "description": "Reusable registered job ID."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepublishJobRequest"
              },
              "examples": {
                "republishJobMinimal": {
                  "summary": "Republish one translated locale",
                  "description": "Regenerate already translated media for one target locale.",
                  "value": {
                    "target_languages": [
                      "es"
                    ]
                  }
                },
                "republishJobWithOptions": {
                  "summary": "Republish with audio options",
                  "description": "Regenerate translated media with the legacy republish controls.",
                  "value": {
                    "target_languages": [
                      "es",
                      "fr"
                    ],
                    "remove_background_audio": true,
                    "prepend_ai_warning": false,
                    "burn_subtitles_on_source": false,
                    "word_count_per_line": 7,
                    "experimental_force_accent": false,
                    "background_audio_volume": 0.8
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Started republish workflow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationJobResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication token."
          },
          "422": {
            "description": "Request validation error."
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Job Workflows",
      "description": "Start translation and subtitle workflows for registered jobs."
    }
  ],
  "components": {
    "schemas": {
      "RepublishJobRequest": {
        "properties": {
          "target_languages": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "minItems": 1,
            "title": "Target Languages"
          },
          "reset": {
            "type": "boolean",
            "title": "Reset",
            "default": true
          },
          "remove_background_audio": {
            "type": "boolean",
            "title": "Remove Background Audio",
            "default": false
          },
          "prepend_ai_warning": {
            "type": "boolean",
            "title": "Prepend Ai Warning",
            "default": false
          },
          "burn_subtitles_on_source": {
            "type": "boolean",
            "title": "Burn Subtitles On Source",
            "default": false
          },
          "word_count_per_line": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "title": "Word Count Per Line",
            "default": 7
          },
          "experimental_force_accent": {
            "type": "boolean",
            "title": "Experimental Force Accent",
            "default": false
          },
          "background_audio_volume": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Background Audio Volume",
            "default": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "target_languages"
        ],
        "title": "RepublishJobRequest"
      },
      "TranslationJobResponse": {
        "properties": {
          "workflow": {
            "type": "string",
            "enum": [
              "translate_media",
              "translate_text",
              "translate_document",
              "translate_subtitles",
              "transcribe_media",
              "republish_media"
            ],
            "title": "Workflow",
            "description": "Translation workflow that was started."
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "started",
              "completed",
              "error"
            ],
            "title": "Status",
            "description": "Current workflow status."
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Id",
            "description": "Reusable registered job ID associated with this workflow."
          },
          "target_languages": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Languages",
            "description": "Target locale codes requested for this workflow."
          },
          "format": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Format",
            "description": "Requested output format when applicable."
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message",
            "description": "Human-readable status message."
          },
          "links": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Links",
            "description": "Related API links."
          }
        },
        "type": "object",
        "required": [
          "workflow",
          "status"
        ],
        "title": "TranslationJobResponse",
        "examples": [
          {
            "job_id": "job_123",
            "links": {
              "job": "/v2/jobs/job_123",
              "status": "/v2/jobs/job_123/status"
            },
            "message": "Translation workflow started",
            "status": "started",
            "target_languages": [
              "es",
              "fr"
            ],
            "workflow": "translate_media"
          }
        ]
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      }
    }
  }
}
```
