Update Account Name
API URL: POST https://userapi-demo.s2f.projectx.com/TradingAccount/changeName
API Reference: /TradingAccount/changeName
Description
Update a Trading Account's account name.
Parameters
| Name | Type | Description | Required | Nullable |
|---|---|---|---|---|
| tradingAccountId | integer | The Trading Account's id. | Required | false |
| name | string | The new Trading Account name. | Required | false |
Example Usage
Example Request
- Request
- cURL
{
"tradingAccountId": 7,
"name": "U7A123"
}
curl -X 'POST' \
'https://userapi-demo.s2f.projectx.com/TradingAccount/changeName' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"tradingAccountId": 7,
"name": "U7A123"
}'
Example Response
- Success
- Not Found
{
"result": 0
}
Error: response status is 401