Patch
Headers
-
Specify effective organization_id for Admin and Group Organization Admins. This is a global header for all endpoints only taken into consideration when it makes sense (it won't be used in Auth, for example)
Path parameters
-
cameraId
Body
-
aim string
-
direction string
Values are
IN
orOUT
. -
location_latitude number(double)
-
location_longitude number(double)
-
name string
-
should_save_last_attachment_id boolean
-
yard_id integer(int64)
PATCH /api/camera/{cameraId}
curl \
-X PATCH http://127.0.0.1:8080/api/camera/{cameraId} \
-H "Content-Type: application/json" \
-d '{"aim":"string","direction":"IN","location_latitude":42.0,"location_longitude":42.0,"name":"string","should_save_last_attachment_id":true,"yard_id":42}'
Request examples
# Headers
# Payload
{
"aim": "string",
"direction": "IN",
"location_latitude": 42.0,
"location_longitude": 42.0,
"name": "string",
"should_save_last_attachment_id": true,
"yard_id": 42
}
Response examples (200)
{"aim"=>"string", "configured"=>true, "direction"=>"IN", "id"=>42, "last_attachment_id"=>42, "location_latitude"=>42.0, "location_longitude"=>42.0, "media_server_push_url"=>"string", "name"=>"string", "should_save_last_attachment_id"=>true, "stream_key"=>"string", "yard_id"=>42}