put
https://api.connex.trade/api/v1/trading/portfolio
Update Trading Portfolio's name by a primary user.
Permission
- Applies to primary user's API Key only.
- Permission: TRADE.
Rate Limit
- 3 requests per 10 seconds
Request body
Send a JSON object with Content-Type: application/json.
| Field name | Type | Necessary | Remarks |
|---|---|---|---|
| portfolioId | Long | Y | Portfolio identifier. |
| name | String | Y | New portfolio name: 6–20 characters, letters and numbers only, cannot be all numeric, case-sensitive. |
Response fields
| Field name | Type | Remarks |
|---|---|---|
| code | integer | Application result code. 200 means success. |
| message | String | Result message. |
| data | object | Paginated Portfolio result. |
| data.portfolioId | integer (int64) | Portfolio identifier. Preserve the full integer value. |
| data.name | String | Portfolio name after this operation. |
Example Request
{
"name": "MyPortfolio"
}
Example Response
{
"code": 200,
"message": "success",
"data": {
"portfolioId": 2154503491108165,
"name": "NewPortfolioName"
}
}
