Skip to Content
Folders

Rename or reorder a folder

PATCH
/folders/{id}

Changes the name, the position, or both.

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

Path Parameters

id*string
Match^[a-zA-Z0-9-]{1,100}$

Request Body

application/json
  1. body
name?string
Length1 <= length
position?integer

Response Body

Updated folder.

application/json
  1. response
id*string
Match^[a-zA-Z0-9-]{1,100}$
name*string
position*integer
createdAt*number
updatedAt*number
Example Request
curl -X PATCH 'https://reader.example/api/v1/folders/string' \  -H 'Content-Type: application/json' \  -d '{  "name": "Research"}'
Example Response
{  "id": "string",  "name": "string",  "position": 0,  "createdAt": 0,  "updatedAt": 0}