List of analytics cases
List of analytics cases
List of analytics cases created on this camera
GET /api/admin/v1/cameras/{camera}/analytic-cases |
Method parameters
int
camera, unique camera identifier
int
per_page, number of items per pagination page. Default is 25
int
page, pagination page number
string
search, search by analytics name, analytics type, or analytics case UID
string
type, filter by analytics type
string
sort, field by which the analytics cases should be sorted
string
dir, sorting direction. desc - from largest to smallest, asc - from smallest to largest
200 |
Returns a list of analytics cases on page i of pagination
JSON
|
401 |
Authorization token is not provided or is invalid. Obtaining a token |
422 |
Returns a JSON object with an error. Validation
JSON
|
cURL
BASH
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/cameras/{camera}/analytic-cases' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"camera": 0,
"per_page": 0,
"page": 0,
"search": "string",
"type": "string",
"sort": "string",
"dir": "string"
}'
PHP
PHP
$data = array (
'camera' => 0,
'per_page' => 0,
'page' => 0,
'search' => 'string',
'type' => 'string',
'sort' => 'string',
'dir' => 'string',
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/cameras/{camera}/analytic-cases', false, $context);