Skip to main content
PATCH
/
api
/
v2
/
views
/
{view.viewId}
UpdateView
curl --request PATCH \
  --url https://your-sift-api-url.com/api/v2/views/{view.viewId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "view": {
    "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
  },
  "updateMask": "<string>"
}'
{
  "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.

Path Parameters

view.viewId
string
required

Body

application/json
view
object
required
updateMask
string

The list of fields to update.

Response

A successful response.

view
object