Skip to content

Change camera state

Request

Change the state of a camera from claimed to claimed_paused or vice-versa.

Security
api_key
Bodyapplication/json
cameraIdstring, (uuid)required

the camera ID of the camera.

newStatestringrequired

The state to which the camera will be set: claimed cameras are processing video and have notifications on, claimed_paused cameras are not processing video, notifications are off and can be re-activated.

Enum:"claimed""claimed_paused"
curl -i -X POST \
  https://coreapi.hoxton.ai/_mock/v1/put-camera-state-requests \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "cameraId": "cbc3283e-6217-4855-9934-148717cbeefe",
    "newState": "claimed"
  }'

Responses

Accepted.

Bodyapplication/json
idstring, (uuid)read-onlyrequired
msgstringrequired
statusstringrequired
Enum:"created""failed""success"
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "msg": "string", "status": "created" }