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
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'VideoFileInfo'.

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
NameDescriptionTypeAdditional information
VideoID

globally unique identifier

None.

Success

boolean

None.

ErrorMsg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "VideoID": "63f34b71-7c2d-469a-b5b7-e33ec4b91f24",
  "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>63f34b71-7c2d-469a-b5b7-e33ec4b91f24</VideoID>
</VideoStatus>