added
3.6.2025 - API Changes
26 days ago by Darrell Malone
New Endpoints
Update All Ports (Switches)
/switches/{switchId}/ports/all/actions
Allows the user to turn all ports on, off, or force them to power cycle. This is useful for managing cameras or other POE devices connected to the switch.
curl --request POST \
--url https://api.cxxx.eagleeyenetworks.com/api/v3.0/switches/25c72162-cfe0-57d1-a94a-ac43904ed01a/ports/all/actions \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"action":"enable"}'
Get Media Session
/media/session
Returns a temporary session URL that is used to set a media cookie in the browser. This is required for accessing live or recorded video via the API.
curl --request GET \
--url https://api.cxxx.eagleeyenetworks.com/api/v3.0/media/session \
--header 'accept: application/json'
Updated Endpoints
Create User
/users
Newly created users can now inherit all of the camera, location, layout and/or account permissions of the user that created them. This can be done by including one of the corresponding boolean properties in the request body.
curl --request POST \
--url https://api.cxxx.eagleeyenetworks.com/api/v3.0/users \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"firstName": "First",
"lastName": "Name",
"email": "[email protected]",
"grantAllLayouts": true,
"grantAllCameras": true,
"grantAllLocations": true,
"grantAllAccounts": true
}
'
Video Analytic Events
/videoAnalyticEvents:deepSearch
Results can now be filtered by Layout ID and/or Tag.
curl --request POST \
--url 'https://api.cxxx.eagleeyenetworks.com/api/v3.0/videoAnalyticEvents:deepSearch?timestamp__gte=2021-04-22T00%3A00%3A00.000%2B00%3A00×tamp__lte=2021-04-22T00%3A00%3A00.000%2B00%3A00&layoutId__in=layout_1&tags__any=tagId_1,tagId_2' \
--header 'accept: application/json' \
--header 'content-type: application/json'