---
updatedAt: 2026-05-06T12:58:01.000Z
agentTools:
  projectIndex: https://docs.audiostack.ai/llms.txt
---

# Modify Folder

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Audiostack API",
    "description": "Documentation for the Audiostack API - the infrastructure for audio",
    "version": "v2",
    "termsOfService": "https://audiostack.ai/en/legal/terms-of-service",
    "contact": {
      "email": "support@audiostack.ai"
    }
  },
  "servers": [
    {
      "url": "https://v2.api.audio",
      "description": "Production server"
    },
    {
      "url": "https://staging-v2.api.audio",
      "description": "Staging server"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/folders/{folderId}": {
      "patch": {
        "tags": [
          "Folders"
        ],
        "summary": "Modify Folder",
        "operationId": "modify_folder_folders__folderId__patch",
        "parameters": [
          {
            "name": "folderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Folder Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModifyFolderPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderResponseV2"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "FolderResponseV2": {
        "properties": {
          "folderId": {
            "type": "string",
            "format": "uuid",
            "title": "Folderid"
          },
          "folderName": {
            "type": "string",
            "title": "Foldername"
          },
          "parentFolderId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parentfolderid"
          },
          "createdBy": {
            "type": "string",
            "title": "Createdby"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "title": "Createdat"
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "updatedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedby"
          }
        },
        "type": "object",
        "required": [
          "folderId",
          "folderName",
          "createdBy",
          "createdAt"
        ],
        "title": "FolderResponseV2"
      },
      "ModifyFolderPayload": {
        "properties": {
          "folderName": {
            "type": "string",
            "title": "Foldername"
          }
        },
        "type": "object",
        "required": [
          "folderName"
        ],
        "title": "ModifyFolderPayload"
      }
    }
  }
}
```