Homarr
Users

Update search preferences

PATCH/api/users/search-preferences

Set a user's default search engine, new-tab behavior, and DuckDuckGo bang preference. Users can update themselves; updating another user requires admin permission.

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/search-preferences" \  -H "Content-Type: application/json" \  -d '{    "defaultSearchEngineId": "string",    "openInNewTab": true,    "ddgBangsEnabled": true,    "userId": "string"  }'
null