Update user preferences

A user should be able to update his preferences so that he could choose which markets and strategies he will receive.

Note

The user should be logged in.

PUT https://api.tradingpartners.ai/api/v1/users/preferences

PUT users/preferences request object

Attributes


longTermStrategy - boolean
User wants to receive long term strategy.


shortTermStrategy - boolean
User wants to receive long term strategy.


cryptocurrencies - boolean
User wants to receive opportunities on cryptocurrencies market.


forex - boolean
User wants to receive opportunities on forex market.


indices - boolean
User wants to receive opportunities on indices market.


commodities - boolean
User wants to receive opportunities on commodities market.


futures - boolean
User wants to receive opportunities on futures market.


stocks - boolean
User wants to receive opportunities on stocks market.


etfs - boolean
User wants to receive opportunities on etfs market.

Authorization header

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXN0IjoidG9rZW4iLCJmb3IiOiJ1c2VyIiwid2l0aCI6ImdyYWRlIiwiZnVsbCI6dHJ1ZX0.sWNz-Z0oGGWoSwaVlOGyzCQdYCWJQmKSSFvZIJzchZw

PUT users/preferences request object

{
  "longTermStrategy": false,
  "shortTermStrategy": true,
  "cryptocurrencies": true,
  "forex": false,
  "indices": false,
  "commodities": false,
  "futures": true,
  "stocks": false,
  "etfs": false
}

Response

A valid update of the user preferences is answered with a 204 status code.

StatusCode: 204