SnozeDevelopers
API referenceUser preferences

Replace the caller's mobile home layout

Overwrites the caller's saved mobile home layout for this workspace, and clears a stored desktop layout that was only ever a legacy mobile stand-in. Requires `workspace:read`. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

PUT
/v1/workspaces/{workspaceId}/preferences/mobile-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
visualVersion?|null
sections*array<>

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X PUT 'https://api.snoze.dev/v1/workspaces/string/preferences/mobile-home-layout' \  -H 'Content-Type: application/json' \  -d '{  "sections": [    {      "id": "string",      "kind": "ask"    }  ]}'
Example Response
{  "data": {    "mobileHomeLayout": {      "visualVersion": 1,      "sections": [        {          "id": "string",          "kind": "ask",          "config": {}        }      ]    }  }}