Folders

Rename / move a folder

Renames or moves a folder from old_path to new_path, re-homing every note beneath it, and returns the affected note count. Returns 404 when the source folder does not exist and 409 when the target path is already occupied.

post/api/folders/rename

Request

  • Base URL: https://api.engram.page
  • URL: https://api.engram.page/api/folders/rename
  • Auth: HTTP bearer

Request body

new_pathstring required
old_pathstring required

Example request

{
  "new_path": "Archive/Engram.md",
  "old_path": "Projects/Engram.md"
}

Response

Renamed

countinteger
new_pathstring
old_pathstring
renamedboolean

Changes

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