Update Mixed Media Aois

Update AOIs for mixed media and return calculated metrics synchronously.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Request params

Path

FieldTypeRequiredDescription
media_idstring (UUID)YesIdentifier of the mixed media object.

Body

FieldTypeRequiredDescription
aoisarrayYesList of AOI definitions to calculate.

Each item in aois:

FieldTypeRequiredDescription
pointsarrayYesPolygon vertices for the AOI region. Each point has x and y (normalized coordinates, 0–1).
namestringNoAOI label. Defaults to an empty string.
start_frameintegerYesFirst frame where the AOI applies. Must be greater than 0.
end_frameintegerYesLast frame where the AOI applies. Must be greater than start_frame.
aoi_typestringNoOptional AOI type (for example branding, product, headline_text).

The total number of frame–AOI entries across all AOIs must not exceed 150,000 (sum of end_frame - start_frame + 1 for each AOI).

Prerequisites: mixed media prediction must be complete (status is done) and saliency results must be available.

Response 200 OK

FieldTypeDescription
frame_dataarrayPer-frame AOI calculation output, including attention values per frame.
aoi_metricsarrayAggregated metrics per AOI (availability, attention, relative attention, etc.).

Each item in aoi_metrics:

FieldTypeDescription
uuidstringIdentifier assigned to the AOI for this calculation.
namestringAOI name from the request.
availabilitynumberOverall availability metric.
availability_startnumberAvailability at the start of the range.
availability_endnumberAvailability at the end of the range.
attentionnumberOverall attention metric.
attention_startnumberAttention at the start of the range.
attention_endnumberAttention at the end of the range.
relative_attentionnumberRelative attention metric.

Other responses

StatusDescription
400 Bad RequestMedia is not mixed media, or the AOI payload is invalid.
422 Unprocessable EntityPrediction has not completed yet, or prediction failed.
500 Internal Server ErrorSaliency data is missing, or the AOI calculation service failed.

Example request

PUT /predict/v2/mixed-media/036d5cb3-4fb1-4e88-98e6-1854b607d296/aois
X-API-Key: {your_api_key}
Content-Type: application/json
{
  "aois": [
    {
      "points": [
        {"x": 0.1, "y": 0.1},
        {"x": 0.1, "y": 0.5},
        {"x": 0.5, "y": 0.5},
        {"x": 0.5, "y": 0.1}
      ],
      "name": "Logo",
      "start_frame": 1,
      "end_frame": 140
    }
  ]
}

Example response

{
  "frame_data": [
    {
      "frame": 1,
      "aois": [
        {
          "uuid": "11111111-1111-1111-1111-111111111111",
          "name": "Logo",
          "points": [
            {"x": 0.1, "y": 0.1},
            {"x": 0.1, "y": 0.5},
            {"x": 0.5, "y": 0.5},
            {"x": 0.5, "y": 0.1}
          ],
          "attentionpercent": 0.75
        }
      ],
      "total_brand_attention": 0.75
    }
  ],
  "aoi_metrics": [
    {
      "uuid": "11111111-1111-1111-1111-111111111111",
      "name": "Logo",
      "availability": 1.0,
      "availability_start": 0.0,
      "availability_end": 1.0,
      "attention": 0.75,
      "attention_start": 0.7,
      "attention_end": 0.8,
      "relative_attention": 0.85
    }
  ]
}

Typical workflow

  1. Create and predict mixed media — complete Create Mixed Media (or Create VAST Mixed Media) and Predict Mixed Media until prediction status is done.
  2. Define AOIsPUT /predict/v2/mixed-media/{media_id}/aois (this endpoint) with polygon points and frame ranges. Metrics are returned in the same response.
  3. Optionally run Detect Mixed Media AOIs first if you want automatic AOI suggestions, then refine regions with this endpoint.
Path Params
string
required
Body Params
aois
array of objects
required
Aois*
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json