put
https://api.liquiditytech.com/api/v1/apiKey/portfolio
Authentication required. Permission: TRADE. Primary user API keys only.
Rate limit: 3 requests per 10 seconds.
Update the configuration of an existing portfolio API key.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
portfolioId | Long | Yes | Portfolio identifier. |
portfolioApiKey | String | Yes | The public API key to update. |
apiName | String | No | New label for the API key. |
ip | String | No | Updated IP whitelist. Up to 20 addresses, comma-separated. |
permission | String | No | Updated permissions. Comma-separated: READ, TRANSFER, WITHDRAW, TRADE. |
Response Fields
| Field | Type | Description |
|---|---|---|
portfolioId | Long | Portfolio identifier. |
apiName | String | Updated API key label. |
accessKey | String | Public API key. |
status | Integer | 1: Normal, 2: Frozen. |
ip | String | Whitelisted IP addresses. Empty string if no restriction. |
permission | String | Assigned permissions, comma-separated. |
createdAt | Long | Creation time, in milliseconds since Unix epoch. |
updatedAt | Long | Last update time, in milliseconds since Unix epoch. |
Example Request
{
"portfolioId": 2154503491108165,
"portfolioApiKey": "6**4",
"apiName": "my-trading-key-v2",
"permission": "READ,TRADE"
}
Example Response
{
"code": 200,
"message": "success",
"data": {
"portfolioId": 2154503491108165,
"apiName": "my-trading-key-v2",
"accessKey": "6**4",
"status": 1,
"ip": "",
"permission": "READ,TRADE",
"createdAt": 1744466400000,
"updatedAt": 1744466410000
}
}
