Attachments

Move attachments to a folder (idempotent)

Moves multiple attachments (by path) into target_folder and returns the moved count. Requires a plan with attachments enabled (402 otherwise) and the X-Idempotency-Key header. Returns 404/409 (with the offending item_path) if an item is missing or conflicts at the target.

post/api/attachments/batch-move

Request

  • Base URL: https://api.engram.page
  • URL: https://api.engram.page/api/attachments/batch-move
  • Auth: HTTP bearer

Request body

pathsstring[] required
target_folderstring required

Example request

{
  "paths": [
    "assets/diagram.png",
    "assets/logo.svg"
  ],
  "target_folder": "archive/assets"
}

Response

Moved count

movedinteger required

Example response

{
  "moved": 3
}

Changes

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