Attachments

Rename / move an attachment

Moves the attachment from old_path to new_path. Requires a plan with attachments enabled (402 otherwise). Returns 404 when the source is missing and 409 when the target path already exists.

post/api/attachments/rename

Request

  • Base URL: https://api.engram.page
  • URL: https://api.engram.page/api/attachments/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

new_pathstring
old_pathstring
renamedboolean

Example response

{
  "attachment": {
    "path": "assets/diagram.png"
  }
}

Changes

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