Skip to Content
Documents

Move documents

PATCH
/documents

Moves documents into a folder, or out of their folder when folderId is null. Moving keeps generated audio.

Authorization

headerAuthorizationBearer <token>

Authorization code with S256 PKCE. Discover issuer metadata at /.well-known/oauth-authorization-server/api/auth and resource metadata at /.well-known/oauth-protected-resource/api/v1. Request the /api/v1 resource explicitly. The same token endpoint also supports the advertised OAuth device grant.

Scope: documents:write

Request Body

application/json
  1. body
ids*array<>
Items1 <= items <= 200
folderId*string|null

Response Body

Updated document metadata.

application/json
  1. response
data*array<>
Example Request
curl -X PATCH 'https://reader.example/api/v1/documents' \  -H 'Content-Type: application/json' \  -d '{  "ids": [    "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"  ],  "folderId": "research"}'
Example Response
{  "data": [    {      "id": "string",      "name": "string",      "size": 0,      "lastModified": 0,      "type": "pdf",      "scope": "user",      "folderId": "string",      "recentlyOpenedAt": 0,      "contentVersion": "string",      "author": "string",      "language": "string",      "readingProgress": {        "fraction": 0,        "updatedAtMs": 0      }    }  ]}