Skip to main content
POST
/
profile
/
change-layout
Update user layout settings
curl --request POST \
  --url https://api.cleartalk.ai/profile/change-layout \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "layout": "vertical",
  "layout_mode": "light",
  "layout_width": "fluid",
  "layout_position": "fixed",
  "topbar_type": "light",
  "sidebar_size": "lg",
  "sidebar_color": "light",
  "direction": "ltr"
}
'

Authorizations

x-api-key
string
header
required

API Key for authentication

Body

application/json
layout
string
required

Main layout type

Example:

"vertical"

layout_mode
string
required

Layout mode (light/dark)

Example:

"light"

layout_width
string
required

Layout width

Example:

"fluid"

layout_position
string
required

Layout position

Example:

"fixed"

topbar_type
string
required

Topbar type

Example:

"light"

sidebar_size
string
required

Sidebar size

Example:

"lg"

sidebar_color
string
required

Sidebar color

Example:

"light"

direction
string
required

Layout direction

Example:

"ltr"

Response

Layout settings updated successfully