CreateView
Creates a view.
POST
/
api
/v2
/views
curl -X POST "<API_URL>/api/v2/views" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"view": {
"viewId": "string",
"name": "string",
"axisGroups": {
"left": [
"string"
],
"right": [
"string"
]
},
"channels": [
{
"name": "string",
"dataType": "string",
"axisGroup": "string",
"bitFieldNames": [
"string"
],
"calculatedChannelConfig": {
"channelKey": "string",
"channelReferences": {
"property1": "string",
"property2": "string"
},
"expression": "string",
"unit": "string"
}
}
],
"createdDate": "2019-08-24T14:15:22Z",
"modifiedDate": "2019-08-24T14:15:22Z",
"createdByUserId": "string",
"modifiedByUserId": "string",
"isPinned": true
}
}'
A successful response.
{
"view": {
"viewId": "string",
"name": "string",
"axisGroups": {
"left": [
"string"
],
"right": [
"string"
]
},
"channels": [
{
"name": "string",
"dataType": "string",
"axisGroup": "string",
"bitFieldNames": [
"string"
],
"calculatedChannelConfig": {
"channelKey": "string",
"channelReferences": {
"property1": "string",
"property2": "string"
},
"expression": "string",
"unit": "string"
}
}
],
"createdDate": "2019-08-24T14:15:22Z",
"modifiedDate": "2019-08-24T14:15:22Z",
"createdByUserId": "string",
"modifiedByUserId": "string",
"isPinned": true
}
}