Users & Profile
Update privacy settings
PUT
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.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
publicProfileSearch?booleanWhether the profile may appear in public search.
transactionHistoryVisibility?booleanWhether the user's transaction history is visible to others.
Settings saved
application/json- response
status*integersuccess*booleanmessage*stringdata*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 } }}