Skip to main content
POST
/
api
/
v2
/
views
CreateView
curl --request POST \
  --url https://your-sift-api-url.com/api/v2/views \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "view": {
    "viewId": "<string>",
    "name": "<string>",
    "axisGroups": {
      "left": [
        "<string>"
      ],
      "right": [
        "<string>"
      ]
    },
    "channels": [
      {
        "name": "<string>",
        "dataType": "<string>",
        "axisGroup": "<string>",
        "bitFieldNames": [
          "<string>"
        ],
        "calculatedChannelConfig": {
          "channelKey": "<string>",
          "channelReferences": {},
          "expression": "<string>",
          "unit": "<string>"
        }
      }
    ],
    "createdDate": "2023-11-07T05:31:56Z",
    "modifiedDate": "2023-11-07T05:31:56Z",
    "createdByUserId": "<string>",
    "modifiedByUserId": "<string>",
    "isPinned": true
  }
}'
{
  "view": {
    "viewId": "<string>",
    "name": "<string>",
    "axisGroups": {
      "left": [
        "<string>"
      ],
      "right": [
        "<string>"
      ]
    },
    "channels": [
      {
        "name": "<string>",
        "dataType": "<string>",
        "axisGroup": "<string>",
        "bitFieldNames": [
          "<string>"
        ],
        "calculatedChannelConfig": {
          "channelKey": "<string>",
          "channelReferences": {},
          "expression": "<string>",
          "unit": "<string>"
        }
      }
    ],
    "createdDate": "2023-11-07T05:31:56Z",
    "modifiedDate": "2023-11-07T05:31:56Z",
    "createdByUserId": "<string>",
    "modifiedByUserId": "<string>",
    "isPinned": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
view
object
required

Response

A successful response.

view
object