POST sites/{id}/channels
Creates new channels in the corresponding site
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The id of the corresponding site |
integer |
Required |
Body Parameters
The list of new channels to create
Collection of CreateChannelVMName | Description | Type | Additional information |
---|---|---|---|
ChannelName | string |
None. |
|
Unit | string |
None. |
Request Formats
application/json, text/json
Sample:
[ { "ChannelName": "sample string 1", "Unit": "sample string 2" }, { "ChannelName": "sample string 1", "Unit": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfCreateChannelVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels"> <CreateChannelVM> <ChannelName>sample string 1</ChannelName> <Unit>sample string 2</Unit> </CreateChannelVM> <CreateChannelVM> <ChannelName>sample string 1</ChannelName> <Unit>sample string 2</Unit> </CreateChannelVM> </ArrayOfCreateChannelVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseVMOfChannelVMName | Description | Type | Additional information |
---|---|---|---|
Resources | Collection of ChannelVM |
None. |
|
ResultCode | FwApiResultCode |
None. |
|
ResultMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Resources": [ { "Id": 1, "Name": "sample string 2", "Unit": "sample string 3" }, { "Id": 1, "Name": "sample string 2", "Unit": "sample string 3" } ], "ResultCode": 0, "ResultMessage": "sample string 1" }
application/xml, text/xml
Sample:
<ResponseVMOfChannelVMFXJgzlgx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels"> <ResultCode>Ok</ResultCode> <ResultMessage>sample string 1</ResultMessage> <Resources> <ChannelVM> <Id>1</Id> <Name>sample string 2</Name> <Unit>sample string 3</Unit> </ChannelVM> <ChannelVM> <Id>1</Id> <Name>sample string 2</Name> <Unit>sample string 3</Unit> </ChannelVM> </Resources> </ResponseVMOfChannelVMFXJgzlgx>