Skip to main content
POST
/
api
/
camera
/
getUptimeWindows
Get camera uptime windows
curl --request POST \
  --url https://api2.rhombussystems.com/api/camera/getUptimeWindows \
  --header 'Content-Type: application/json' \
  --header 'x-auth-apikey: <api-key>' \
  --header 'x-auth-scheme: <x-auth-scheme>' \
  --data '
{
  "cameraUuid": "AAAAAAAAAAAAAAAAAAAAAA",
  "endTime": 1641081600,
  "startTime": 1640995200
}
'
{
  "error": true,
  "errorMsg": "<string>",
  "uptimeWindows": [
    {
      "durationSeconds": 123,
      "startSeconds": 123
    }
  ],
  "warningMsg": "<string>"
}

Authorizations

x-auth-apikey
string
header
required

Your API key for Rhombus.

Headers

x-auth-scheme
string
default:api-token
required

Authentication scheme indicator ("api-token").

Required string length: 9

Body

application/json

Request to retrieve uptime windows for a camera within a time range.

cameraUuid
string<RUUID> | null

base 64 (url-safe) uuid string

Example:

"AAAAAAAAAAAAAAAAAAAAAA"

endTime
integer<int64> | null

End time in seconds since epoch

Example:

1641081600

startTime
integer<int64> | null

Start time in seconds since epoch

Example:

1640995200

Response

200 - application/json

OK

Response containing uptime windows for a camera.

error
boolean | null
errorMsg
string | null
uptimeWindows
object[] | null

List of uptime windows

warningMsg
string | null