Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

POST channels/start

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

POST

Start monitoring a channel on the desired MCM device from MCS.

Resource URL

https://{{ip_address}}:{{port}}/api/{{version}}/channels/command/monitoring/enable

Example Request

POST

  1. https://192.168.0.22/api/5.0/channels/command/monitoring/enable

Body

Code Block
languagejson
[
    {
    "device": "f0fd7753-5843-43a3-acf7-eaf8065f8010",
    "channel": "5b1adde6-a9b9-4211-9fe9-225d5f22dad1"
  }
]

Response

Code Block
languagejson
{
    "data": [
        {
            "uuid": "e05dc05a-9af6-4775-b66a-7ab69269feaa",
            "created": 1631542309895,
            "type": "Start Monitoring",
            "state": "Running",
            "progress": 0,
            "attributes": {
                "channel": "5b1adde6-a9b9-4211-9fe9-225d5f22dad1",
                "device": "f0fd7753-5843-43a3-acf7-eaf8065f8010"
            },
            "result": null
        }
    ],
    "metadata": {}
}


POST channels/stop

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

POST

Stop monitoring a channel on the desired MCM device from MCS.

Resource URL

https://{{ip_address}}:{{port}}/api/{{version}}/channels/command/monitoring/disable

Example Request

POST

  1. https://192.168.0.22/api/5.0/channels/command/monitoring/disable

Body

Code Block
languagejson
[
    {
    "channel": "5b1adde6-a9b9-4211-9fe9-225d5f22dad1"
  }
]

Response

Code Block
languagejson
{
    "data": [
        {
            "uuid": "7c993de5-7ae9-44fa-ac32-eebab87842ef",
            "created": 1631542415849,
            "type": "Stop Monitoring",
            "state": "Running",
            "progress": 0,
            "attributes": {
                "channel": "5b1adde6-a9b9-4211-9fe9-225d5f22dad1"
            },
            "result": null
        }
    ],
    "metadata": {}
}