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

# Rename a dub or move it to a project

> Renames the dub and/or moves it into a project, like "Rename" and "Move to project" in the web app. Send title, project_id or both; a body with neither returns 400. Both are checked before anything is written: if one of them is invalid, neither is changed. A value that is already as stored is not written, so a request that changes nothing returns 200 with the current values. Works in every dub status, with no limit and no review lock. No credits are charged.



## OpenAPI

````yaml /openapi.json patch /api/v1/dubs/{id}
openapi: 3.1.0
info:
  title: Dubly API
  version: 1.0.0
  description: >-
    The Dubly public API creates, edits and downloads AI-dubbed videos. Every
    request authenticates with an API token as a Bearer token
    ([Authentication](/authentication)). Every answer is JSON in an envelope: `{
    "status": "success", "response": … }` on success, `{ "status": "error",
    "message": … }` on failure — see [Errors](/guides/errors).
servers:
  - url: https://app.dubly.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Create dubs
    description: >-
      Start a dub from a YouTube video, a Google Drive file or a public video
      URL.
  - name: Dubs
    description: >-
      Read a dub's status and results, rename, move or delete it, list its
      downloads and set the original-voice volume.
  - name: Dub editing
    description: >-
      Read and correct segments, edit the timeline, re-voice a segment and apply
      the changes with an update. See [Edit limits](/guides/edit-limits).
  - name: Lip sync
    description: >-
      Start lip sync for a language, follow its progress and switch lip sync per
      block.
  - name: Subtitled video
    description: Burn subtitles into the video of a language and fetch the result.
  - name: Account
    description: List the projects and custom voices of your account.
paths:
  /api/v1/dubs/{id}:
    patch:
      tags:
        - Dubs
      summary: Rename a dub or move it to a project
      description: >-
        Renames the dub and/or moves it into a project, like "Rename" and "Move
        to project" in the web app. Send title, project_id or both; a body with
        neither returns 400. Both are checked before anything is written: if one
        of them is invalid, neither is changed. A value that is already as
        stored is not written, so a request that changes nothing returns 200
        with the current values. Works in every dub status, with no limit and no
        review lock. No credits are charged.
      operationId: patch-dub
      parameters:
        - name: id
          in: path
          required: true
          description: >-
            The dub ID (path parameter). An unknown dub, a dub of another
            account and a deleted dub return 404.
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  description: >-
                    New title. Leading and trailing spaces are removed; the rest
                    must be 1–500 characters, otherwise 400.
                project_id:
                  anyOf:
                    - type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    - type: 'null'
                  description: >-
                    Project to move the dub into — a project of your account
                    (see GET /api/v1/projects). An unknown project or one of
                    another account returns 404. null takes the dub out of its
                    project.
              additionalProperties: false
            examples:
              renameAndMove:
                summary: Rename and move into a project
                value:
                  title: Product Tour (DE)
                  project_id: 83724e4d-f41a-4f1a-a4c3-590e6b296bb0
      responses:
        '200':
          description: The dub's title and project after the request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  response:
                    type: object
                    properties:
                      id:
                        type: string
                      title:
                        type: string
                      project_id:
                        type:
                          - string
                          - 'null'
                        description: The dub's project, or null when it is in none.
                    required:
                      - id
                      - title
                      - project_id
                required:
                  - status
                  - response
              examples:
                renamedAndMoved:
                  summary: Renamed and moved
                  value:
                    status: success
                    response:
                      id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      title: Product Tour (DE)
                      project_id: 83724e4d-f41a-4f1a-a4c3-590e6b296bb0
        '400':
          description: >-
            BAD_REQUEST — The dub ID is not a UUID. Or the body is not valid
            JSON, has neither title nor project_id, has another field, or a
            value is invalid (a blank title or one longer than 500 characters, a
            project_id that is no UUID). Nothing is changed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: UNAUTHORIZED — Missing or invalid API token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: >-
            NOT_FOUND — The dub does not exist, belongs to another account or
            was deleted. Or project_id is an unknown project or one of another
            account. Nothing is changed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: >-
            INTERNAL_ERROR — The dub or the project could not be read, or the
            change could not be saved — nothing was changed. Retry the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          const: error
        message:
          type: string
      required:
        - status
        - message
      description: >-
        The error envelope. The HTTP status carries the error code; `message`
        says what went wrong, in English.
      examples:
        - status: error
          message: Dub not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API token from Settings → API in the Dubly web app, sent as
        `Authorization: Bearer <token>`.

````

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