Create Channel for Setting Measurement Points¶
Create the channel for setting measurement points.
Request Format¶
POST http://{apigw-address}/dataService/setMeasurepointChannels?orgId={}
Request Parameters (URI)¶
Name  | 
Location (Path/Query)  | 
Required or not  | 
Data type  | 
Description  | 
|---|---|---|---|---|
orgId  | 
Query  | 
Yes  | 
String  | 
Organization ID which the asset belongs to. How to get Organization ID>>  | 
Request Parameters (Body)¶
Name  | 
Required or not  | 
Data type  | 
Description  | 
|---|---|---|---|
setMeasurepointChannelId  | 
True  | 
String  | 
ID of the channel for setting measurement points. It must begin with DATASVC.SET.. Supports upper- and lower-case letters, numbers, underline (_), period (.) and hyphen (-). No more than 60 bytes.  | 
desc  | 
False  | 
String  | 
Channel description  | 
Response Parameters¶
Name  | 
Data type  | 
Description  | 
|---|---|---|
status  | 
Int  | 
Status code  | 
msg  | 
String  | 
Response message  | 
submsg  | 
String  | 
Response sub-message  | 
data  | 
Object  | 
Response data object, the structure of which is in the table below  | 
Name  | 
Data type  | 
Description  | 
|---|---|---|
id  | 
String  | 
Data object ID  | 
setMeasurepointChannelId  | 
String  | 
ID of the channel for setting measurement points  | 
desc  | 
String  | 
Channel description  | 
Samples¶
Request Sample¶
PUT http://{apigw-address}/dataService/setMeasurepointChannels?orgId=o15434988531231
{
   "setMeasurepointChannelId":"DATASVC.SET.setMeasurepointChannelId1",
   "desc":"desc"
}
Response Sample¶
{
   "status":0,
   "msg":"Success",
   "submsg":null,
   "data":{
      "id":"dsfasdfdasfdsaf",
      "setMeasurepointChannelId":"DATASVC.SET.setMeasurepointChannelId1",
      "desc":"desc"
   }
}