{
  "opencollection": "1.0.0",
  "info": {
    "name": "Cognite 3D Asset Mapping Groups API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/groups",
            "params": [
              {
                "name": "all",
                "value": "",
                "type": "query",
                "description": "Whether to get all groups, only available with the groups:list acl."
              }
            ]
          },
          "docs": "\n\n> **Required capabilities:** `groupsAcl:LIST`\n\nRetrieves a list of groups the asking principal a member of. Principals with groups:list capability can optionally ask for all groups in a project."
        },
        {
          "info": {
            "name": "Create groups",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/groups",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "\n\n> **Required capabilities:** `groupsAcl:CREATE`\n\nCreates one or more named groups, each with a set of capabilities. All users with any group membership in a CDF project automatically get the `userProfilesAcl:READ` capability and can search for other users. If not assigned automatically, user profiles must be enabled for the project. To enable user profiles, contact [support](https://support.cognite.com/)."
        },
        {
          "info": {
            "name": "Delete groups",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{cluster}.cognitedata.com/api/v1/projects/{project}/groups/delete",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "\n\n> **Required capabilities:** `groupsAcl:DELETE`\n\nDeletes the groups with the given IDs."
        }
      ]
    }
  ],
  "bundled": true
}