delete
https://api.connex.trade/api/v1/apiKey/portfolio
Delete the API Key of a Trading Portfolio 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 parameters as a JSON body with Content-Type: application/json.
| Field name | Type | Necessary | Remarks |
|---|---|---|---|
| portfolioId | Long | Y | Trading Portfolio ID |
| portfolioApiKey | String | Y | The target key's accessKey, returned by creation or listing. |
Response fields
| Field name | Type | Remarks |
|---|---|---|
| code | integer | Application result code. 200 means success. |
| message | String | Result message. |
| data | object | The deleted key identifier. |
Key result: data
| Field name | Type | Remarks |
|---|---|---|
| data.portfolioId | integer (int64) | Portfolio identifier. Preserve the full integer value. |
| data.apiName | String | API Key note |
| data.accessKey | String | Identifier of the deleted key. |
| data.updatedAt | integer (int64) | Deletion time, Unix timestamp in milliseconds.. |
Example request
{
"portfolioId": 2154503491108165,
"portfolioApiKey": "EXAMPLE_ACCESS_KEY"
}
Example response
{
"code": 200,
"message": "success",
"data": {
"portfolioId": 2154503491108165,
"apiName": "ExampleKeyUpdated",
"accessKey": "EXAMPLE_ACCESS_KEY",
"updatedAt": 1789061468522
}
}
