Polyrankdocs
ApiUser

PATCH /v1/user-prefs

Save the Essentials / Advanced view mode for this account (all devices). `null` clears the choice, so the plan default applies again.

PATCH
/v1/user-prefs

Save the Essentials / Advanced view mode for this account (all devices). null clears the choice, so the plan default applies again.

AuthorizationBearer <token>

API key: Authorization: Bearer pk_live_… (mint at polyrank.app/api-keys)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/user-prefs" \  -H "Content-Type: application/json" \  -d '{    "view_mode": "essentials"  }'
{  "view_mode": "essentials",  "view_mode_saved": true,  "default_view_mode": "essentials"}
{  "error": "string",  "message": "string",  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}