OpenFolia

Read your preferences

GET
/me/preferences

Whether the editor shows you tips and the first-run tour, the tips you closed and whether you finished the tour; the defaults (tips on, none closed, the tour to come) until you change one. A service reads the defaults. Only your own: nobody reads or changes another person’s. Any person; no permission needed.

Authorization

bearer
headerAuthorizationBearer <JWT>

A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.

Header Parameters

X-Ccms-User?string

Demo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).

Response Body

application/vnd.api+json
  1. response
data*

Your own preferences: the editor’s tips and first-run tour. id is your user ID (service for a service, which has the defaults and changes none).

Example Request
curl -X GET 'http://localhost:3000/me/preferences'
Example Response
{  "data": {    "type": "Preferences",    "id": "string",    "attributes": {      "showTips": true,      "dismissedTips": [        "string"      ],      "tourDone": true    },    "meta": {      "updatedAt": "2019-08-24T14:15:22Z"    }  }}