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

# Rename a list or move it between folders

> Renames the list and/or moves it between folders. `name` must stay unique in the workspace (409 LIST_NAME_TAKEN). `folderId` moves the list into an existing folder of its own kind — an unknown id, a folder of another workspace, or one holding the other kind of list all answer 404 FOLDER_NOT_FOUND; `folderId: null` returns it to the root; `folderName` is create-or-reuse by exact, case-insensitive name for the list's kind (mutually exclusive with folderId). A move is only reported when it actually happened: a list that is not the token owner's to move answers 404 LIST_NOT_FOUND, and moving a list into the folder it is already in is a no-op that still answers 200. The response echoes only the fields that changed.

Errors:
- `404` `LIST_NOT_FOUND` — No list with that id is visible to the token owner, or the list is not theirs to move.
- `404` `FOLDER_NOT_FOUND` — folderId does not name a folder of the token owner that holds lists of this list's kind.
- `409` `LIST_NAME_TAKEN` — Another list already has the requested name.
- `422` `VALIDATION_FAILED` — No field to change, both folderId and folderName sent, or a value out of bounds.
- `429` `RATE_LIMITED` — The lists rate bucket is exhausted.

Requires one of the following token scopes: lists.



## OpenAPI

````yaml /openapi.json patch /business/lists/{listId}
openapi: 3.1.0
info:
  title: Fuse Business API
  version: 1.0.0
  description: >-
    External API for lists, campaigns, prospect search and contacts.
    Authenticate with your API token as HTTP Basic. All paths are under /api/v1.
servers:
  - url: https://api.tryfuse.ai/api/v1
    description: Production
security:
  - basicAuth: []
tags:
  - name: Lists
  - name: Custom columns
  - name: Smart columns
  - name: Exports
  - name: Campaigns
  - name: Knowledge hubs
  - name: Analytics
  - name: Website intent
  - name: Account
  - name: Prospect search
  - name: Campaign steps
  - name: Scheduled sends
  - name: Campaign templates
  - name: Agents
  - name: Research
  - name: Company search
  - name: Saved searches
  - name: Folders
  - name: Contacts
paths:
  /business/lists/{listId}:
    patch:
      tags:
        - Lists
      summary: Rename a list or move it between folders
      description: >-
        Renames the list and/or moves it between folders. `name` must stay
        unique in the workspace (409 LIST_NAME_TAKEN). `folderId` moves the list
        into an existing folder of its own kind — an unknown id, a folder of
        another workspace, or one holding the other kind of list all answer 404
        FOLDER_NOT_FOUND; `folderId: null` returns it to the root; `folderName`
        is create-or-reuse by exact, case-insensitive name for the list's kind
        (mutually exclusive with folderId). A move is only reported when it
        actually happened: a list that is not the token owner's to move answers
        404 LIST_NOT_FOUND, and moving a list into the folder it is already in
        is a no-op that still answers 200. The response echoes only the fields
        that changed.


        Errors:

        - `404` `LIST_NOT_FOUND` — No list with that id is visible to the token
        owner, or the list is not theirs to move.

        - `404` `FOLDER_NOT_FOUND` — folderId does not name a folder of the
        token owner that holds lists of this list's kind.

        - `409` `LIST_NAME_TAKEN` — Another list already has the requested name.

        - `422` `VALIDATION_FAILED` — No field to change, both folderId and
        folderName sent, or a value out of bounds.

        - `429` `RATE_LIMITED` — The lists rate bucket is exhausted.


        Requires one of the following token scopes: lists.
      operationId: updateList
      parameters:
        - name: listId
          in: path
          required: true
          description: 24-character hex id of the list (from GET /business/lists).
          schema:
            type: string
            description: 24-character hex id of the list (from GET /business/lists).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                  description: >-
                    New list name (1-255 characters, trimmed); must be unique in
                    the workspace or the call answers 409 LIST_NAME_TAKEN.
                folderId:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Move the list into this folder (24-character hex id of a
                    folder of the list's own kind); null removes it from its
                    current folder, and an unknown id answers 404
                    FOLDER_NOT_FOUND.
                folderName:
                  type: string
                  minLength: 1
                  maxLength: 120
                  description: >-
                    Move the list into the folder with this exact name
                    (case-insensitive, 1-120 characters), creating it for the
                    list's kind when none exists; mutually exclusive with
                    folderId.
      responses:
        '200':
          description: Success
          headers:
            RateLimit-Limit:
              schema:
                type: integer
              description: Requests permitted in the current window.
            RateLimit-Remaining:
              schema:
                type: integer
              description: Requests remaining in the current window.
            RateLimit-Reset:
              schema:
                type: integer
              description: Seconds until the current window resets.
          content:
            application/json:
              schema:
                type: object
                required:
                  - list
                properties:
                  list:
                    type: object
                    required:
                      - id
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      folderId:
                        type:
                          - string
                          - 'null'
              example:
                list:
                  id: 68a1f20b9c41d20014b3e901
                  name: Q3 fintech CFOs (US)
                  folderId: 68a1f9aa9c41d20014b3f101
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - basicAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            doc_url:
              type:
                - string
                - 'null'
            request_id:
              type:
                - string
                - 'null'
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >-
        Your API token (`af_…`) as the Basic-auth username, with an empty
        password.

````