{
  "opencollection": "1.0.0",
  "info": {
    "name": "Cognite 3D Asset Mapping Views API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Views",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List views defined in the project",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/models/views",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Limit the number of results returned. The largest result-set returned by the server will be 1000 items, even if you specify a higher limit."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Cursor for paging through results. In general, if a response contains a `nextCursor`\nproperty, it means that there may be more results, and you should pass that value as the\n`cursor` parameter in the next request.\n\nNote that the cursor may or may not be encrypted, but either way, it is not intended to be\ndecoded. Its internal structure is not a part of the public API, and may change without\nnotice. You should treat it as an opaque string and not attempt to craft your own cursors.\n"
              },
              {
                "name": "space",
                "value": "",
                "type": "query",
                "description": "The space to query."
              },
              {
                "name": "includeInheritedProperties",
                "value": "",
                "type": "query",
                "description": "Include properties inherited from views this view implements."
              },
              {
                "name": "allVersions",
                "value": "",
                "type": "query",
                "description": "If all versions of the entity should be returned. Defaults to false which returns the latest version, attributed to the newest 'createdTime' field"
              },
              {
                "name": "includeGlobal",
                "value": "",
                "type": "query",
                "description": "If the global items of the entity should be returned. Defaults to false which excludes global items."
              }
            ]
          },
          "docs": "\n\n> **Required capabilities:** `dataModelsAcl:READ`\n\nList of views defined in the current project. You can filter the list by specifying a space."
        },
        {
          "info": {
            "name": "Create or update views",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/models/views",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "\n\n> **Required capabilities:** `dataModelsAcl:WRITE`\n\nAdd or update (upsert) views. For unchanged view specifications, the operation completes without making any changes.  We will not update the ```lastUpdatedTime``` value for views that remain unchanged."
        },
        {
          "info": {
            "name": "Retrieve views by their external ids",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/models/views/byids",
            "params": [
              {
                "name": "includeInheritedProperties",
                "value": "",
                "type": "query",
                "description": "Include properties inherited from views this view implements."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "\n\n> **Required capabilities:** `dataModelsAcl:READ`\n\nRetrieve up to 100 views by their external ids."
        },
        {
          "info": {
            "name": "Delete views",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/models/views/delete",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "\n\n> **Required capabilities:** `dataModelsAcl:WRITE`\n\nDelete one or more views.  Currently limited to 100 views at a time."
        }
      ]
    }
  ],
  "bundled": true
}