Skip to content

Create/Update people count monitor camera position

Request

Update a people count monitor's camera position if it exists, create a new object linking the given people count monitor to the given camera position otherwise.

Security
api_key
Bodyapplication/jsonrequired

A people count monitor camera position to put.

cameraPositionIdstring, (uuid)required
direction1stringrequired
Enum:"direction_1""direction_2"
idstring or null, (uuid)
peopleCountMonitorIdstring, (uuid)required
statestring
Enum:"active""deleted"
curl -i -X PUT \
  https://coreapi.hoxton.ai/_mock/v1/people-count-monitor-camera-positions \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "cameraPositionId": "37eacd70-df6f-462c-b57e-ba61d0ee7150",
    "direction1": "direction_1",
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "peopleCountMonitorId": "af5c9ece-4147-4fc4-9db3-7065170e641f",
    "state": "active"
  }'

Responses

Created.

Bodyapplication/json
cameraPositionIdstring, (uuid)required
deletedAtstring or null, (date-time)read-only
direction1stringrequired
Enum:"direction_1""direction_2"
idstring or null, (uuid)
peopleCountMonitorIdstring, (uuid)required
statestring
Enum:"active""deleted"
Response
{ "cameraPositionId": "37eacd70-df6f-462c-b57e-ba61d0ee7150", "deletedAt": "2019-08-24T14:15:22Z", "direction1": "direction_1", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "peopleCountMonitorId": "af5c9ece-4147-4fc4-9db3-7065170e641f", "state": "active" }