Skip to main content
PATCH
/
api
/
v1
/
me
/
theme
Update Theme
curl --request PATCH \
  --url https://api.example.com/api/v1/me/theme \
  --header 'Content-Type: application/json' \
  --data '
{
  "theme": "<string>"
}
'
{
  "theme": "dark"
}
Updates the user’s UI theme preference. Persisted in the database and used by the client to set the initial theme on load.

Request Body

theme
string
required
Theme preference. One of: light, dark.

Request

curl -X PATCH \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"theme": "dark"}' \
  https://app.taxhomebase.com/api/v1/me/theme

Response

{
  "theme": "dark"
}