CreateOnlineTest
Creates an online detection task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-greenweb:CreateOnlineTest |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
No |
The resource type. Valid values: voice (audio), image (image), file (document), text (text), and video (video). |
video |
| ServiceCode |
string |
No |
The service code. Specify a valid service code. The valid service code for online video testing is videoDetection. VideoModeration is not a valid value and returns a 406 online.test.failed error. |
videoDetection |
| Url |
string |
No |
The detection URL. |
https://xxxxxxxxxx.com/data/data.png |
| DataId |
string |
No |
The data ID. |
4f27b8cc7c4544cb90b41882a5b36326 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
{@link PortalResponse} |
||
| RequestId |
string |
The ID assigned by the backend to uniquely identify a request. You can use this ID to troubleshoot issues. |
AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE**** |
| TaskId |
string |
The ID of the detection task. |
xxxxx-xxxxx |
| TaskStatus |
string |
The detection status. |
SUCCESS |
| Url |
string |
The detection URL. |
https://xxxxxxxxxx.com/data/data.png |
| ServiceCode |
string |
The service code. |
videoDetection |
Examples
Success response
JSON format
{
"RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\n",
"TaskId": "xxxxx-xxxxx",
"TaskStatus": "SUCCESS",
"Url": "https://xxxxxxxxxx.com/data/data.png",
"ServiceCode": "VideoModeration"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.