Homarr
Users

Change the default search engine

Deprecated

PATCH/api/users/changeSearchEngine

Deprecated: use PATCH /api/users/search-preferences instead. Updates the default search engine and supplied DuckDuckGo bang preference while preserving the new-tab 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/changeSearchEngine" \  -H "Content-Type: application/json" \  -d '{    "defaultSearchEngineId": "string",    "ddgBangsEnabled": true,    "userId": "string"  }'
null