Skip to content

Latest commit

 

History

History
65 lines (55 loc) · 1.59 KB

enable.md

File metadata and controls

65 lines (55 loc) · 1.59 KB

Enable Motion Detection for Camera

Enable motion detection for the given Camera.

Note: No motion detection or video recording will take place unless the system is armed.

POST /network/{NetworkID}/camera/{CameraID}/enable

Headers

  • TOKEN-AUTH - session auth token

Response

  • A command object. See example. This call is asynchronous and is monitored by the Command Status API call using the returned Command Id.

Example Request

curl --request POST \
  --url https://rest-prod.immedia-semi.com/network/1234/camera/5678/enable \
  --header 'token-auth: {Token_Auth}'

Example Response

200 OK

{
  "id": 123456789,
  "created_at": "2020-08-09T22:20:16+00:00",
  "updated_at": "2020-08-09T22:20:16+00:00",
  "execute_time": "2020-08-09T22:20:16+00:00",
  "command": "config_lfr",
  "state_stage": "rest",
  "stage_rest": "2020-08-09T22:20:16+00:00",
  "stage_cs_db": null,
  "stage_cs_sent": null,
  "stage_sm": null,
  "stage_dev": null,
  "stage_is": null,
  "stage_lv": null,
  "stage_vs": null,
  "state_condition": "new",
  "sm_ack": null,
  "lfr_ack": null,
  "sequence": null,
  "attempts": 0,
  "transaction": "aTransactionID",
  "player_transaction": "aPlayTransactionID",
  "server": null,
  "duration": null,
  "by_whom": "device name - client version - unique hash",
  "diagnostic": false,
  "debug": "",
  "opts_1": 0,
  "target": "camera",
  "target_id": 5678,
  "parent_command_id": null,
  "camera_id": 5678,
  "siren_id": null,
  "firmware_id": null,
  "network_id": 1234,
  "account_id": 1234,
  "sync_module_id": 123456
}