Homarr
Users

User Router change Header Preferences

PATCH
/api/users/header-preferences
ApiKey<token>

API key which can be obtained in the Homarr administration dashboard

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/users/header-preferences" \  -H "Content-Type: application/json" \  -d '{    "id": "string",    "headerPreferences": {      "version": 3,      "visible": true,      "searchDisplay": "input",      "zones": {        "left": [          {            "type": "builtin",            "id": "logo"          }        ],        "center": [          {            "type": "builtin",            "id": "logo"          }        ],        "right": [          {            "type": "builtin",            "id": "logo"          }        ]      }    }  }'
null