v11

latestSwagger 2.0raw.githubusercontent.com2023-03-313540106.5 KB
Reviews

A job ID will be returned for the content posted on this endpoint.

After the content is evaluated against the provided workflow, the review will be created or ignored based on the workflow expression.

<h3>CallBack Schemas </h3> <p> <h4>Job Completion CallBack Sample</h4><br/>

{<br/> "JobId": "<Job ID>,<br/> "ReviewId": "<Review ID, if the job resulted in a review to be created>",<br/> "WorkFlowId": "default",<br/> "Status": "<One of Complete, InProgress, or Error>",<br/> "ContentType": "Image",<br/> "ContentId": "<ContentId value that was specified on input>",<br/> "CallBackType": "Job",<br/> "Metadata": {<br/> "adultscore": "0.xxx",<br/> "a": "False",<br/> "racyscore": "0.xxx",<br/> "r": "True"<br/> }<br/> }<br/>

</p> <p> <h4>Review Completion CallBack Sample</h4><br/>

{ "ReviewId": "<Review ID>",<br/> "ModifiedOn": "2016-10-11T22:36:32.9934851Z",<br/> "ModifiedBy": "<Name of the reviewer>",<br/> "CallBackType": "Review",<br/> "ContentId": "<ContentId value that was specified on input>",<br/> "Metadata": {<br/> "adultscore": "0.xxx", "a": "False",<br/> "racyscore": "0.xxx",<br/> "r": "True"<br/> },<br/> "ReviewerResultTags": {<br/> "a": "False",<br/> "r": "True"<br/> }<br/> }<br/>

</p>.
post/contentmoderator/review/v1.0/teams/{teamName}/jobs

Path parameters

teamNamestring required

Your team name.

Query parameters

ContentType'Image' | 'Text' | 'Video' required

Image, text or video.

ContentIdstring required

ID or name to identify the submitted content.

WorkflowNamestring required

Workflow name that you want to invoke.

CallBackEndpointstring

Callback endpoint for posting the result of creating a job.

Headers

Content-Type'application/json' | 'image/jpeg' required

Content type.

Request body

ContentValuestring required

Content to evaluate for a job.

Response

OK.

JobIdstring

ID of the created job.