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

Changes

Changed in 5 of the 49 revisions of this API.310

    • added the new optional request property focus

      new-optional-request-property

  • f1205c950e4526See the full diff
    • removed the enum value EVERY_10_MIN of the request property trigger_scheme

      request-property-enum-value-removed

    • removed the enum value ON_LAYER_CHANGE of the request property trigger_scheme

      request-property-enum-value-removed

    • added the new EACH_LAYER enum value to the request property trigger_scheme

      request-property-enum-value-added

    • added the new FIFTH_LAYER enum value to the request property trigger_scheme

      request-property-enum-value-added

    • added the new MANUAL enum value to the request property trigger_scheme

      request-property-enum-value-added

    • added the new SIXTY_SEC enum value to the request property trigger_scheme

      request-property-enum-value-added

    • added the new TEN_SEC enum value to the request property trigger_scheme

      request-property-enum-value-added

    • added the new THIRTY_SEC enum value to the request property trigger_scheme

      request-property-enum-value-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the non-success response with the status 503

      response-non-success-status-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 26 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog