All Products
Search
Document Center

ApsaraVideo VOD:SubmitAIMediaAuditJob

Last Updated:Jul 19, 2024

Submits an automated review job for a media file. After the job is submitted, ApsaraVideo VOD asynchronously processes the job. Therefore, the operation may return a response before the job is complete.

Operation description

  • Make sure that you understand the billing methods and price of ApsaraVideo VOD before you call this operation. You are charged for using the automated review feature. For more information about billing, submit a ticket or contact your account manager.
  • You can call this operation only in the China (Shanghai), China (Beijing), and Singapore regions.
  • For more information, see Automated review.
  • After an automated review job is complete, the images generated during the review are stored in the VOD bucket for two weeks free of charge. The images are automatically deleted after two weeks.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
MediaIdstringYes

The ID of the video file. To obtain the file ID, log on to the ApsaraVideo VOD console and choose Review Management > Content Moderation in the left-side navigation pane.

fe028d09441afffb138cd7ee****
TemplateIdstringNo

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

  • Obtain the ID of the AI template from the response to the AddAITemplate operation. The value of TemplateId is the ID of the AI template.
  • Obtain the ID of the AI template from the response to the ListAITemplate operation. The value of TemplateId is the ID of the AI template.
Note If you do not specify an ID, the ID of the default AI template is used.
a07a7f7d7d10eb9fd999e56ecc****
UserDatastringNo

The custom settings. The value must be a JSON string. You can configure settings such as message callbacks. For more information, see UserData .

Note To use the callback configurations specified by this parameter, you must configure an HTTP callback URL and specify the types of the callback events in the ApsaraVideo VOD console. Otherwise, the callback configurations do not take effect. For more information about how to configure HTTP callback settings in the ApsaraVideo VOD console, see Configure callback settings.
{"MessageCallback":{"CallbackURL":"http://test.test.com"},"Extend":{"localId":"xxx","test":"www"}}
MediaTypestringNo

The type of the media file. Only video is supported.

video
MediaAuditConfigurationstringNo

The configuration information about the review job.

  • Other configuration items of the review job. Only the ResourceType field is supported. This field is used to specify the type of media files. You can adjust review standards and rules based on the type of media files.
  • If you want to modify the review standard and rules based on ResourceType, submit a ticket. For more information, see Contact us.
  • The value of ResourceType can contain only letters, digits, and underscores (_).
{"ResourceType":"****_movie"}

Response parameters

ParameterTypeDescriptionExample
object

The returned results.

RequestIdstring

The ID of the request.

F4631053-8D9F-42B2-4A67281DB88E****
MediaIdstring

The ID of the media file.

fe028d09441afffb138cd7ee****
JobIdstring

The ID of the job.

bdbc266af6893943a70176d92e99****

Examples

Sample success responses

JSONformat

{
  "RequestId": "F4631053-8D9F-42B2-4A67281DB88E****",
  "MediaId": "fe028d09441afffb138cd7ee****",
  "JobId": "bdbc266af6893943a70176d92e99****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history