Skip to main content

Request Rules

Shared request rules used across the REST API.

Common Rules

  • Use Content-Type: application/json for POST requests.
  • Provide ISO date-time strings for date and time fields such as start_date_time, end_date_time, and video_start_local_time.
  • Use full RTSP URLs for stream_url fields.
  • For live-search updates, use search_id: -1 to target all active searches.
  • Search requests must include at least one valid search criterion, such as object_description, face recognition fields, or similarity.

Common Value Ranges

FieldRule
frame_rateMinimum 1
alert_threshold in live_searchGreater than 0 and less than 100
duration_seconds0 or greater
alert_secondsMinimum 0.1 when used
reset_secondsMinimum 0.1 when used