SnozeDevelopers
API referenceUser preferences

Replace the caller's desktop home layout

Overwrites the caller's saved home dashboard widget layout for this workspace. Requires `workspace:read`. This is a full replacement rather than a patch, so sending the same layout twice is a no-op.

PUT
/v1/workspaces/{workspaceId}/preferences/home-layout

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string

Request Body

application/json
  1. body
widgets*array<>

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X PUT 'https://api.snoze.dev/v1/workspaces/string/preferences/home-layout' \  -H 'Content-Type: application/json' \  -d '{  "widgets": [    {      "id": "string",      "kind": "string",      "x": 0,      "y": 0,      "w": 0,      "h": 0    }  ]}'
Example Response
{  "data": {    "homeLayout": {      "widgets": [        {          "id": "string",          "kind": "string",          "x": 0,          "y": 0,          "w": 0,          "h": 0,          "config": {}        }      ]    }  }}