Skip to navigation

Replace the signed-in person’s dashboard preferences

Replaces the whole document. home_layout is any JSON object; the body is at most 16 KiB. Each person has their own; no one else can read or change it.

People: any role.

curl -sS -X PUT "$MEADOW_BASE_URL/v1/me/preferences" \
-H "Authorization: Bearer $SESSION_TOKEN" -H "Content-Type: application/json" \
-d '{"home_layout": {"modules": []}}'

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Request

This endpoint expects an object.
home_layoutmap from strings to anyRequired

Response headers

x-request-idstringOptional

Meadow’s id for this request, req_ and 24 hex characters. Every response carries it, including errors, streams and unknown routes. Every error in the Error schema repeats it as request_id. Quote it when you report a problem.

Response

The saved preferences.
objectenum
Allowed values:
home_layoutmap from strings to any
The saved dashboard layout.
updated_atdatetime or null
When it was last saved. Null when never.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
413
Content Too Large Error
500
Internal Server Error