> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reedapt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change lines

> Change the wording or direction of up to 100 lines. They are re-voiced and the
dub's files rebuilt; the dub reports `applying_changes` meanwhile.



## OpenAPI

````yaml /openapi.json post /dubs/{dub_id}/lines/edit
openapi: 3.1.0
info:
  title: Reedapt Dubbing API
  description: >-
    Dub video and audio into other languages in the speaker's own voice.
    Authenticate with `Authorization: Bearer <key>`; make keys in Reedapt under
    Developers.
  version: 1.0.0
servers:
  - url: https://api.reedapt.com/v1
security:
  - apiKey: []
paths:
  /dubs/{dub_id}/lines/edit:
    post:
      tags:
        - Agent
      summary: Change lines
      description: >-
        Change the wording or direction of up to 100 lines. They are re-voiced
        and the

        dub's files rebuilt; the dub reports `applying_changes` meanwhile.
      operationId: edit_dub_lines_dubs__dub_id__lines_edit_post
      parameters:
        - name: dub_id
          in: path
          required: true
          schema:
            type: string
            title: Dub Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LineEditsIn'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LineEditsOut'
        '401':
          description: The key is missing, wrong or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '403':
          description: The key's account can't use this yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '404':
          description: Nothing with this id belongs to the key's account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '409':
          description: The request conflicts with the object's state; the code says which.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '422':
          description: The request is invalid; the code and `fields` say why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '429':
          description: >-
            Too many requests, or a plan limit was reached. Wait for
            `Retry-After` seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    LineEditsIn:
      properties:
        lines:
          items:
            $ref: '#/components/schemas/LineEdit'
          type: array
          maxItems: 100
          minItems: 1
          title: Lines
      type: object
      required:
        - lines
      title: LineEditsIn
    LineEditsOut:
      properties:
        dub_id:
          type: string
          title: Dub Id
        lines:
          items:
            type: integer
          type: array
          title: Lines
        status:
          type: string
          const: revoicing
          title: Status
      type: object
      required:
        - dub_id
        - lines
        - status
      title: LineEditsOut
    ErrorBody:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: ErrorBody
    LineEdit:
      properties:
        line:
          type: integer
          minimum: 1
          title: Line
        text:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Text
          description: New wording in the dub's language.
        delivery_style:
          anyOf:
            - type: string
            - type: 'null'
          title: Delivery Style
          description: e.g. `angry`, `whisper`; null clears it.
        voice_instructions:
          anyOf:
            - type: string
              maxLength: 300
            - type: 'null'
          title: Voice Instructions
          description: How to say it, in plain words.
      type: object
      required:
        - line
      title: LineEdit
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: Stable and machine-readable; branch on this, not on the message.
          examples:
            - UPLOAD_INCOMPLETE
        message:
          type: string
          title: Message
          description: What went wrong and what to do, in plain English.
          examples:
            - Complete the upload before dubbing it.
        request_id:
          type: string
          title: Request Id
          description: Quote it when you contact us about this request.
          examples:
            - req_8f2c1e0a9b7d6c5e4f3a
        fields:
          anyOf:
            - items:
                additionalProperties:
                  type: string
                type: object
              type: array
            - type: 'null'
          title: Fields
          description: >-
            On INVALID_REQUEST from validation: each field that is missing or
            invalid.
          examples:
            - - field: target_languages
                message: Field required
      type: object
      required:
        - code
        - message
        - request_id
      title: ErrorDetail
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: '`rk_live_…` or `rk_test_…`, made in Reedapt under Developers.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.