Register

POST /api/camera

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)

application/json

Body

Responses

POST /api/camera
curl \
 -X POST http://127.0.0.1:8080/api/camera \
 -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}