Specifies an AI template as the default template.

Usage notes

Before you can call this operation to specify an AI template as the default template, you must obtain the ID of the AI template. You cannot delete an AI template after you specify it as the default template.

QPS limit

You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation. For more information, see QPS limits on API operations in ApsaraVideo VOD.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetDefaultAITemplate

The operation that you want to perform. Set the value to SetDefaultAITemplate.

TemplateId String Yes 1706a0063dd733f6a823ef32e0a5****

The ID of the AI template. You can use one of the following methods to obtain the ID of the AI template:

  • Call the AddAITemplate operation to add an AI template if no AI template exists. The value of TemplateId from the response is the ID of the AI template.
  • Call the ListAITemplate operation if the template already exists. The value of TemplateId from the response is the ID of the AI template.

Response parameters

Parameter Type Example Description
TemplateId String 1706a0063dd733f6a823ef32e0a5****

The ID of the AI template.

RequestId String 8E70E3F8-E2EE-47BC-4677-379D6F28****

The ID of the request.

Examples

Sample requests

http(s)://vod.cn-shanghai.aliyuncs.com/?Action=SetDefaultAITemplate
&TemplateId=1706a0063dd733f6a823ef32e0a5****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<SetDefaultAITemplateResponse>
    <TemplateId>1706a0063dd733f6a823ef32e0a5****</TemplateId>
    <RequestId>8E70E3F8-E2EE-47BC-4677-379D6F28****</RequestId>
</SetDefaultAITemplateResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "TemplateId" : "1706a0063dd733f6a823ef32e0a5****",
  "RequestId" : "8E70E3F8-E2EE-47BC-4677-379D6F28****"
}

Error codes

For a list of error codes, visit the API Error Center.