# Add languages to an existing asset With this endpoint, you can add new languages to an existing asset. Once you make the request, Panjaya will initiate a new dubbing process for each added language. Once the process is complete, you will be notified via email and the callback URL, if configured. Endpoint: POST /v1/assets/{asset_id}/languages Security: api_key ## Path parameters: - `asset_id` (string, required) ## Request fields (application/json): - `languages` (array, required) List of languages to translate and dub the asset to - `languages.locale` (string, required) A locale code of [a supported locale](#section/Languages-support). If the locale is not supported, an error response of status 400 will be returned. - `languages.srt` (any) Optional reference SRT file contents. Must be in a [valid SRT file format](https://docs.fileformat.com/video/srt/), otherwise, an error response of status 400 will be returned. - `auto_generate` (string) If specified, Panjaya will generate the result video automatically, with or without synthesized lips according to the parameter's value. If not specified, Panjaya will not generate the result video automatically. Enum: "off", "with_lips", "no_lips" ## Response 202 fields (application/json): - `asset_id` (string, required) - `name` (string, required) - `locale` (string, required) A locale code of [a supported locale](#section/Languages-support). If the locale is not supported, an error response of status 400 will be returned. - `created_at` (string, required) - `status` (string, required) Enum: "Dubbing", "PendingReview", "Ready", "Failed" - `languages` (array, required) - `languages.dubbing_id` (any, required) - `languages.versions` (array, required) - `languages.versions.version_id` (string, required) - `duration` (any, required) Duration of the source video in seconds. The field may be while the asset is processing. - `error` (any) ## Response 400 fields (application/json): - `detail` (string, required) A full description of the error. ## Response 401 fields (application/json): - `detail` (string, required) A full description of the error. ## Response 404 fields (application/json): - `detail` (string, required) A full description of the error. ## Response 500 fields (application/json): - `detail` (string, required) A full description of the error.