Update overall settings
PATCH/v1/settings/overall
Update overall settings
This endpoint allows users to modify their account settings, specifically the visibility of balances, preferred currency, and language. It accepts a JSON payload with optional fields: hideBalances, currency, and language. The endpoint validates the provided currency and language against supported values (USD, BRL for currencies; en, pt for languages). Upon successful validation and update, it returns a 204 No Content status. Errors such as unsupported currency or language result in a 400 Bad Request, while internal server errors yield a 500 Internal Server Error response.
Request
- application/json
Body
required
currency stringnullable
hideBalances booleannullable
language stringnullable
Responses
- 204
- 400
- 500
User settings updated
Unsupported language or currency
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...