Users & Profile
Set the theme preference
PUT
Access: Bearer token required.
Stores the user's preferred theme. There is no request validation schema on this route; the handler itself requires theme to be one of SYSTEM, LIGHT or DARK (upper case) and rejects anything else, including a missing value. New accounts default to SYSTEM.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
theme*stringOne of SYSTEM, LIGHT, DARK.
Theme saved
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X PUT 'http://localhost:4000/api/v1/user/appearance' \ -H 'Content-Type: application/json' \ -d '{ "theme": "DARK"}'Example Response
{ "status": 200, "success": true, "message": "Appearance settings updated.", "data": { "theme": "DARK" }}