v1

latestOpenAPI 3.0.1AGPLv32026-07-17302746.4 KB

Setup a new camera or fix a broken one

post/api/v1/cameras/{id}

Request body

namestring

Name of the camera

trigger_scheme'TEN_SEC' | 'THIRTY_SEC' | 'SIXTY_SEC' | 'EACH_LAYER' | 'FIFTH_LAYER' | 'MANUAL'

When the snapshot is taken

rotationinteger

Current rotation of the output image

focusnumber

Focus of the camera (0.0 - 1.0)

exposurenumber
send_to_connectboolean

Example request

{
  "name": "MuadDib_Camera_1",
  "resolution": {
    "width": 640,
    "height": 640
  },
  "rotation": 180,
  "focus": 0.5,
  "exposure": 4.2,
  "send_to_connect": true
}

Response

OK