Common

Folder Update

Markdown for LLMs
PUT
/common/folder/{folderId}/update

Renames one of the caller's folders. Send its id as folderId and the new name as folder.name. Only the name can change: a folderEntityId sent in the body is ignored. The response returns the folder as it is now stored.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Path Parameters

folderId*string

Id of the folder to rename, as returned by common-folder-create or common-folder-list in id. Only the caller's own folders can be addressed. Must be a GUID: a value that is not one matches no route and returns a bodiless 404. A well-formed id that matches none of the caller's folders returns 404 FOLDER_NOT_FOUND.

Formatuuid

Request Body

application/json

Mandatory, as FolderUpdateRequest.

TypeScript Definitions

Use the request body type in TypeScript.

Request body for common-folder-update: the folder's new name. Only name is read; a folder's folderEntityId cannot change.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/common/folder/92d62501-d227-4d9a-93b2-e904907bf981/update" \  -H "Content-Type: application/json" \  -d '{    "folder": {      "name": "Q3 Financial Contracts (final)"    },    "externalContext": {      "id": "12345"    }  }'
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "folder": {        "id": "92d62501-d227-4d9a-93b2-e904907bf981",        "name": "Q3 Financial Contracts (final)",        "folderEntityId": "DATA_SOURCES"      }    }  },  "externalContext": {    "id": "12345"  },  "origin": "PUT https://api.doctavian.com/v1/common/folder/{folderId}/update",  "dateTime": "2026-10-16T12:58:12.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "3c4d5e6f7a8b49a0ac3d4e5f60718293"}
{  "error": {    "statusCode": 400,    "message": "Bad Request",    "innerErrors": [      {        "code": "FOLDER_NAME_REQUIRED",        "message": "Folder name is required.",        "userMessage": "Folder name is required."      }    ],    "externalErrors": []  },  "externalContext": {    "id": "12345"  },  "origin": "PUT https://api.doctavian.com/v1/common/folder/{folderId}/update",  "dateTime": "2026-10-16T12:58:04.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "7e2c9a4f1b6d43085d0b8e3a6c2f9d14"}
{  "error": {    "statusCode": 404,    "message": "Not Found",    "innerErrors": [      {        "code": "FOLDER_NOT_FOUND",        "message": "Folder was not found.",        "userMessage": "The folder was not found."      }    ],    "externalErrors": []  },  "externalContext": {    "id": "12345"  },  "origin": "PUT https://api.doctavian.com/v1/common/folder/{folderId}/update",  "dateTime": "2026-10-16T12:58:10.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "8f3d0b5e2a7c44196e1c9f4b7d3a0e25"}
{  "error": {    "statusCode": 500,    "message": "Internal Server Error",    "innerErrors": [      {        "code": "UPDATE_FOLDER_FAILED",        "message": "Failed to update folder.",        "userMessage": "Something went wrong. Please try again or contact support.",        "eventId": "8d4f2b0e-6c1a-4935-a7e3-5b9c0d2f8a16"      }    ],    "externalErrors": []  },  "externalContext": {    "id": "12345"  },  "origin": "PUT https://api.doctavian.com/v1/common/folder/{folderId}/update",  "dateTime": "2026-10-16T12:58:06.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "b1e6c0a4f9d2457380c3e7a1b5d9f2c4"}