All Products
Search
Document Center

ApsaraVideo VOD:SubmitAIMediaAuditJob

Last Updated:Jul 29, 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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vod:SubmitAIMediaAuditJobcreate
  • All Resources
    *
    none
none

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 value of TemplateId from the response to the AddAITemplate operation that you call to create an AI template.
  • Obtain the value of TemplateId from the response to the ListAITemplate operation that you call to create an 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