Change user interface preferences

Save specific user settings that affect how the interface is displayed or behaves. It returns a requestId that can be used to track the change in the system, which is important for troubleshooting and tracking setting modifications.

Headers

Accept Example
Content-Type Example

Body

required
application/json
key string required
value any required
category string required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/preferences
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/preferences" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "string",
    "value": null,
    "category": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string",
    "key": "string",
    "value": true,
    "category": "string"
  }
}
Request Body
{
  "key": "string",
  "value": null,
  "category": "string"
}