Adds an AI template for automated review and smart thumbnail tasks.
Operation description
- Regions that support this operation: China (Beijing), China (Shanghai), and Singapore.
- Before you add an AI template for automated review and smart thumbnail tasks, make sure that automated review and smart thumbnail are enabled.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TemplateName | string | Yes | The name of the AI template. The name can be up to 128 bytes in length. | AI-media-test |
TemplateType | string | Yes | The type of the AI template. Valid values:
| AIMediaAudit |
TemplateConfig | string | Yes | The detailed configurations of the AI template. The value must be a JSON string. For more information, see AITemplateConfig . | {"AuditItem":["terrorism","porn"],"AuditRange":["image-cover","text-title","video"],"AuditContent":["screen"],"AuditAutoBlock":"yes"} |
Response parameters
Examples
Sample success responses
JSON
format
{
"TemplateId": "1706a0063dd733f6a823ef32e0a5****",
"RequestId": "25818875-5F78-4A13-BEF6-****"
}
Error codes
For a list of error codes, visit the Service error codes.