Domain name for API request: vod.intl.tencentcloudapi.com.
This API is used to import AI analysis results into the knowledge base.
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: ImportMediaKnowledge. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-17. |
| Region | No | String | Common Params. This parameter is not required. |
| SubAppId | Yes | Integer | Specifies the VOD application ID. |
| FileId | Yes | String | media file ID, the globally unique identifier of the file in vod, is assigned by the vod backend after successful upload. can be obtained from the video upload completion event notification or vod console. |
| ImportTasks.N | Yes | Array of String | Specifies the task type for importing the knowledge base. valid values:. - AiAnalysis.DescriptionTask - SmartSubtitle.AsrFullTextTask |
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Task ID. |
| 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: ImportMediaKnowledge
<Common request parameters>
{
"SubAppId": 1490012345,
"FileId": "966263*******14024",
"ImportTasks": [
"AiAnalysis.DescriptionTask"
]
}{
"Response": {
"RequestId": "82d8af52-0bab-4894-bf4b-831e38fba6f4",
"TaskId": "1490012345-ImportMediaKnowledge-6c93a80f3f49a2426299c0ec0096349ft"
}
}
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 |
|---|---|
| InternalError | Internal error. |
| InvalidParameterValue | Incorrect parameter value. |
| ResourceNotFound.UserNotExist | The user does not exist. |
Feedback