Domain name for API request: vod.intl.tencentcloudapi.com.
Update the Token for AIGC API calls. Data synchronization has a delay of about 30 seconds after the update.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: UpdateAigcApiToken. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-17. |
| Region | No | String | Common Params. This parameter is not required. |
| ApiToken | Yes | String | To update the Api Key |
| SubAppId | Yes | Integer | On-demand application ID. For customers who activate on-demand services after December 25, 2023, this field must be set to the app ID when accessing resources in on-demand applications (whether the default application or a newly created application). |
| ActionType | No | String | Merge (default, merge ExtInfo JSON by top-level key), Overwrite (direct overwrite) |
| ExtInfo | No | String | The ip allowlist and model allowlist are stored in ExtInfo in json format, with the following fields: (1) ip allowlist (2) model allowlist (3) name |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: vod.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: UpdateAigcApiToken
<Common request parameters>
{
"SubAppId": 251441341,
"ApiToken": "D2JJ0DHJ********************rXFX",
"ActionType": "Merge",
"ExtInfo": "{\"ip\":{\"9.134.4.21\":true}}"
}
{
"Response": {
"RequestId": "96a1da82-7443-4765-82e4-c1065959f908"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation.DBError | Operation failed: database operation failed. |
| InvalidParameterValue | Parameter value error. |
| LimitExceeded | The quota limit is exceeded. |
| ResourceNotFound.UserNotExist | The user does not exist. |
文档反馈