Folders

Rename a folder

Renames the folder. Descendant folder paths update automatically; previously stored paths into the subtree stop resolving, so store folder ids rather than paths. Sibling name conflicts respond 409.

patch/api/v1/folders/{folderId}

Request

  • Base URL
    https://app.khotan.com
  • URL
    https://app.khotan.com/api/v1/folders/{folderId}
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Path parameters

folderIdstring required

Request body

namestring required

Response

The renamed folder.

idstring required
namestring required
parentIdstring nullable required

The parent folder's id, or null for a top-level folder.

pathstring required

The folder's full path. Paths change on rename; store ids.

Changes

No recorded changes to this operation across all 1 revision of this API.