Create a 'moderate' job
Changed onDeprecated: use POST /robots/v1/jobs/moderate instead. Creates a new job that uses AI to analyze a Mux Video asset for inappropriate content. Optional output steering can restrict execution to a time scope in seconds.
Request
- Base URLhttps://api.mux.com
- Auth
- HTTP basic
- or HTTP bearer
Request body
Example request
{
"parameters": {
"asset_id": "mux_asset_123abc",
"thresholds": {
"sexual": 0.7,
"violence": 0.8
},
"output_steering": {
"scope": {
"start_time": 30,
"end_time": 180
}
},
"on_flagged": {
"action": "delete_playback_ids"
}
}
}Response
Moderation job queued
Example response
{
"data": {
"parameters": {
"asset_id": "mux_asset_123abc",
"thresholds": {
"sexual": 0.7,
"violence": 0.8
},
"output_steering": {
"scope": {
"start_time": 30,
"end_time": 180
}
},
"on_flagged": {
"action": "delete_playback_ids"
}
},
"resources": {
"assets": [
{
"id": "abc123asset",
"meta": {
"title": "My Video",
"creator_id": "user123",
"external_id": "ext456"
},
"_links": {
"self": {
"href": "/video/v1/assets/abc123asset"
}
}
}
]
},
"outputs": {
"thumbnail_scores": [
{
"time": 0,
"sexual": 0.01,
"violence": 0.02
},
{
"time": 30,
"sexual": 0.03,
"violence": 0.15
},
{
"time": 60,
"sexual": 0.02,
"violence": 0.05
}
],
"max_scores": {
"sexual": 0.03,
"violence": 0.15
},
"exceeds_threshold": false
}
}
}Changes
- warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
endpoint deprecated
- warning
- info
the
request property default valueenwas removed - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
the
response's property default valueenwas removed for the status
- info