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

# Update a folder



## OpenAPI

````yaml /openapi.yaml patch /v1/folders/{id}
openapi: 3.1.0
info:
  title: VTurb API
  version: v1
  description: |
    Public REST API for VTurb. Dev-first and agents-first: every documented
    response is recorded from the API's real behavior.
  contact:
    name: VTurb API
    url: https://vturb.com
servers:
  - url: https://api.vturb.com
security:
  - bearerAuth: []
paths:
  /v1/folders/{id}:
    patch:
      tags:
        - Folders
      summary: Update a folder
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          example: 68b0000000000000000000a2
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                folder_id:
                  type:
                    - string
                    - 'null'
            example:
              name: ACME Corp
              folder_id: null
      responses:
        '200':
          description: >-
            Renames or moves the folder; folder_id null moves it to the root,
            with everything inside it. kind never changes.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  kind:
                    type: string
                    enum:
                      - videos
                      - ab_tests
                  folder_id:
                    type:
                      - string
                      - 'null'
                  created_at:
                    type: string
                  updated_at:
                    type: string
                required:
                  - id
                  - name
                  - kind
                  - folder_id
                  - created_at
                  - updated_at
              example:
                id: 68b0000000000000000000a2
                name: ACME
                kind: videos
                folder_id: null
                created_at: '2026-07-28T12:00:00.000Z'
                updated_at: '2026-07-28T13:00:00.000Z'
        '400':
          description: The body carries a field this endpoint does not accept.
          content:
            application/problem+json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  field:
                    type: string
                  request_id:
                    type: string
                required:
                  - type
                  - code
                  - message
                  - field
                  - request_id
              example:
                type: https://docs.vturb.com/errors/bad_request
                code: bad_request
                message: The request includes fields this endpoint does not accept.
                field: kind
                request_id: 00000000-0000-0000-0000-000000000000
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Paste your VTurb API token (vt_...). Sent as `Authorization: Bearer
        <token>`.

````