POST api/VideoAnalysisService
Allows posting video for AI analysis
Request Information
URI Parameters
None.
Body Parameters
Video file info with the video content as base 64
VideoFileInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| ContentBase64 |
Gets or sets the content base 64 |
string |
None. |
| VideoExtension |
Video file extension |
string |
None. |
| VideoName |
Video name |
string |
None. |
| VideoDescription |
Video Description |
string |
None. |
| VideoFileName |
Video file name |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ContentBase64": "sample string 1",
"VideoExtension": "sample string 2",
"VideoName": "sample string 3",
"VideoDescription": "sample string 4",
"VideoFileName": "sample string 5"
}
application/xml, text/xml
Sample:
<VideoFileInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSP.AI.Portal.Models"> <ContentBase64>sample string 1</ContentBase64> <VideoDescription>sample string 4</VideoDescription> <VideoExtension>sample string 2</VideoExtension> <VideoFileName>sample string 5</VideoFileName> <VideoName>sample string 3</VideoName> </VideoFileInfo>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
VideoStatus with status of post if it was successful or not, with unique video key which you can save to get analysis
VideoStatus| Name | Description | Type | Additional information |
|---|---|---|---|
| VideoID | globally unique identifier |
None. |
|
| Success | boolean |
None. |
|
| ErrorMsg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"VideoID": "3344cebc-f8d8-405b-9058-7d9fe3b2a676",
"Success": true,
"ErrorMsg": "sample string 3"
}
application/xml, text/xml
Sample:
<VideoStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSP.AI.Portal.Models"> <ErrorMsg>sample string 3</ErrorMsg> <Success>true</Success> <VideoID>3344cebc-f8d8-405b-9058-7d9fe3b2a676</VideoID> </VideoStatus>