3.10. Change a User's Email
Method | URL |
---|---|
PUT | /oauth2/ctid/changeEmail |
Changes a user’s email on the cTrader backend in the event of an email change on the broker’s CRM system.
Request Body
Key | Required? | Data Type | Description |
---|---|---|---|
userId | Yes | integer | The unique ID of a specific user. |
newEmail | Yes | string | The user’s new email address. |
brokerCrmName | Yes | string | Please, see Section 2.3. |
Request Example
curl -X POST ‘https://HOST:PORT/cid/oauth2/ctid/changeEmail?token=04d95575-c9af-42fba72e-2f0ce93f01d4’ -H ‘Accept: application/json’ -H ‘Content-Type: application/json’ -d ‘{"userId": 10345533, "newEmail": "user%40gmail.com", "brokerCrmName": "BESTBROKERCRM"}’
Expected Response Status Code
204
Last update: February 6, 2023