Skip to content

Channel Enable

To enable a channel, call the URI http(s)://<qie_server>:<management_api_port>/channel/enable with the following payload:

{
   "zoneName": "<desired zone>",
   "channelName": "<desired channel>",
   "formatOutput": true | false
}

Base JSON Payload Definition

Node Description
zoneName REQUIRED: The name of the zone containing the channel.
channelName REQUIRED: The name of the channel.
formatOutput True if the response JSON should be formatted as human readable (default=false).

The following response is received if the zone and channel are found, and the channel was successfully enabled:

HTTP Status: 200

{
   "message": "<response_message>"
}
Node Description
message This message indicates whether the channel was enabled, or if it was already enabled.

If there is an error finding the zone or channel or if there was an error enabling the channel, then the following response is received:

HTTP Status: 400

{
   "error": "<error message>"
}

Example curl command:

curl -H "apiToken:abc123" --request POST http://qieserver:9999/channel/enable -d '{"zoneName":"myZoneName","channelName":"myChannelName"}'
curl -H "apiToken:abc123" --request POST http://qieserver:9999/channel/enable -d "{\"zoneName\":\"myZoneName\",\"channelName\":\"myChannelName\"}"
curl -H @{"apiToken"="abc123"} -Method POST http://qieserver:9999/channel/enable -Body '{"zoneName":"myZoneName","channelName":"myChannelName"}' | Select-Object -Expand RawContent