Skip to Content
HomeLink Hub
Users & Profile

Update privacy settings

PUT
/api/v1/user/privacy-settings

Access: Bearer token required.

Partially updates the user's privacy settings; only boolean values that are sent are changed. publicProfileSearch defaults to true and transactionHistoryVisibility to false on new accounts. The response returns both settings.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Request Body

application/json
  1. body
publicProfileSearch?boolean

Whether the profile may appear in public search.

transactionHistoryVisibility?boolean

Whether the user's transaction history is visible to others.

Response Body

Settings saved

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X PUT 'http://localhost:4000/api/v1/user/privacy-settings' \  -H 'Content-Type: application/json' \  -d '{  "publicProfileSearch": false}'
Example Response
{  "status": 200,  "success": true,  "message": "Privacy settings updated.",  "data": {    "privacySettings": {      "publicProfileSearch": false,      "transactionHistoryVisibility": false    }  }}