Reference for https://services.sensorbis.cloud/V0100/Service.svc/rest/AddChannels

Url: https://services.sensorbis.cloud/V0100/Service.svc/rest/AddChannels

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response Xml Example,Schema
Response Json Example

The following is an example request Xml body:

<AddChannelsRequest xmlns="http://schemas.datacontract.org/2004/07/SensorbisCloud.BackEnd.ServiceV0100">
  <sensor>
    <channels>
      <AddChannelsRequestChannel>
        <communicationId>String content</communicationId>
        <enumerated>true</enumerated>
        <grouping>97</grouping>
        <max>1.26743233E+15</max>
        <min>1.26743233E+15</min>
        <name>String content</name>
        <purpose>String content</purpose>
        <thresholdOperator1>String content</thresholdOperator1>
        <thresholdOperator2>String content</thresholdOperator2>
        <thresholdValue1>1.26743233E+15</thresholdValue1>
        <thresholdValue2>1.26743233E+15</thresholdValue2>
        <unit>String content</unit>
      </AddChannelsRequestChannel>
      <AddChannelsRequestChannel>
        <communicationId>String content</communicationId>
        <enumerated>true</enumerated>
        <grouping>97</grouping>
        <max>1.26743233E+15</max>
        <min>1.26743233E+15</min>
        <name>String content</name>
        <purpose>String content</purpose>
        <thresholdOperator1>String content</thresholdOperator1>
        <thresholdOperator2>String content</thresholdOperator2>
        <thresholdValue1>1.26743233E+15</thresholdValue1>
        <thresholdValue2>1.26743233E+15</thresholdValue2>
        <unit>String content</unit>
      </AddChannelsRequestChannel>
    </channels>
    <id>String content</id>
  </sensor>
</AddChannelsRequest>

The following is an example request Json body:

{
	"sensor":{
		"channels":[{
			"communicationId":"String content",
			"enumerated":true,
			"grouping":"a",
			"max":1.26743233E+15,
			"min":1.26743233E+15,
			"name":"String content",
			"purpose":"String content",
			"thresholdOperator1":"String content",
			"thresholdOperator2":"String content",
			"thresholdValue1":1.26743233E+15,
			"thresholdValue2":1.26743233E+15,
			"unit":"String content"
		}],
		"id":"String content"
	}
}

The following is an example response Xml body:

<AddChannelsResponse xmlns="http://schemas.datacontract.org/2004/07/SensorbisCloud.BackEnd.ServiceV0100">
  <error>2147483647</error>
  <channels>
    <AddChannelsResponseChannel>
      <id>String content</id>
    </AddChannelsResponseChannel>
    <AddChannelsResponseChannel>
      <id>String content</id>
    </AddChannelsResponseChannel>
  </channels>
</AddChannelsResponse>

The following is an example response Json body:

{
	"error":2147483647,
	"channels":[{
		"id":"String content"
	}]
}

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/SensorbisCloud.BackEnd.ServiceV0100" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/SensorbisCloud.BackEnd.ServiceV0100" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="AddChannelsRequest">
    <xs:sequence>
      <xs:element name="sensor" nillable="true" type="tns:AddChannelsRequestSensor" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AddChannelsRequest" nillable="true" type="tns:AddChannelsRequest" />
  <xs:complexType name="AddChannelsRequestSensor">
    <xs:sequence>
      <xs:element name="channels" nillable="true" type="tns:ArrayOfAddChannelsRequestChannel" />
      <xs:element name="id" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AddChannelsRequestSensor" nillable="true" type="tns:AddChannelsRequestSensor" />
  <xs:complexType name="ArrayOfAddChannelsRequestChannel">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AddChannelsRequestChannel" nillable="true" type="tns:AddChannelsRequestChannel" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAddChannelsRequestChannel" nillable="true" type="tns:ArrayOfAddChannelsRequestChannel" />
  <xs:complexType name="AddChannelsRequestChannel">
    <xs:sequence>
      <xs:element minOccurs="0" name="communicationId" nillable="true" type="xs:string" />
      <xs:element name="enumerated" type="xs:boolean" />
      <xs:element name="grouping" type="ser:char" />
      <xs:element minOccurs="0" name="max" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="min" nillable="true" type="xs:double" />
      <xs:element name="name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="purpose" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="thresholdOperator1" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="thresholdOperator2" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="thresholdValue1" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="thresholdValue2" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="unit" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AddChannelsRequestChannel" nillable="true" type="tns:AddChannelsRequestChannel" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
  <tns:element name="schema">
    <tns:complexType />
  </tns:element>
</tns:schema>

The following is the response Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/SensorbisCloud.BackEnd.ServiceV0100" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/SensorbisCloud.BackEnd.ServiceV0100" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="AddChannelsResponse">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:ContractResponse">
        <xs:sequence>
          <xs:element minOccurs="0" name="channels" nillable="true" type="tns:ArrayOfAddChannelsResponseChannel" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="AddChannelsResponse" nillable="true" type="tns:AddChannelsResponse" />
  <xs:complexType name="ContractResponse">
    <xs:sequence>
      <xs:element minOccurs="0" name="error" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ContractResponse" nillable="true" type="tns:ContractResponse" />
  <xs:complexType name="ArrayOfAddChannelsResponseChannel">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AddChannelsResponseChannel" nillable="true" type="tns:AddChannelsResponseChannel" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAddChannelsResponseChannel" nillable="true" type="tns:ArrayOfAddChannelsResponseChannel" />
  <xs:complexType name="AddChannelsResponseChannel">
    <xs:sequence>
      <xs:element name="id" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AddChannelsResponseChannel" nillable="true" type="tns:AddChannelsResponseChannel" />
</xs:schema>

Additional response Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
  <tns:element name="schema">
    <tns:complexType />
  </tns:element>
</tns:schema>