{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Azure Cognitive Services Accounts Groups API",
    "version": "3.2"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Ocp-Apim-Subscription-Key",
      "value": "{{Ocp-Apim-Subscription-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft List groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{region}.api.cognitive.microsoft.com/groups",
            "params": [
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Number of items to return (page size)"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of items to skip for pagination"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query",
                "description": "OData order by expression"
              },
              {
                "name": "$search",
                "value": "",
                "type": "query",
                "description": "Search expression to filter results"
              },
              {
                "name": "$count",
                "value": "",
                "type": "query",
                "description": "Include count of items in the response"
              }
            ]
          },
          "docs": "List all the groups in an organization, including but not limited to Microsoft 365 groups. Returns a default set of properties for each group."
        },
        {
          "info": {
            "name": "Microsoft Create group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{region}.api.cognitive.microsoft.com/groups",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new group as specified in the request body. You can create one of the following groups: Microsoft 365 group (unified group), security group, or mail-enabled security group."
        },
        {
          "info": {
            "name": "Microsoft Get group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{region}.api.cognitive.microsoft.com/groups/:group-id",
            "params": [
              {
                "name": "group-id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the group"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              }
            ]
          },
          "docs": "Get the properties and relationships of a group object. Returns a default set of properties unless you use $select to specify specific properties."
        },
        {
          "info": {
            "name": "Microsoft Update group",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{region}.api.cognitive.microsoft.com/groups/:group-id",
            "params": [
              {
                "name": "group-id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the group"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the properties of a group object."
        },
        {
          "info": {
            "name": "Microsoft Delete group",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{region}.api.cognitive.microsoft.com/groups/:group-id",
            "params": [
              {
                "name": "group-id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the group"
              }
            ]
          },
          "docs": "Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days."
        },
        {
          "info": {
            "name": "Microsoft List group members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{region}.api.cognitive.microsoft.com/groups/:group-id/members",
            "params": [
              {
                "name": "group-id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the group"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Number of items to return (page size)"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression"
              }
            ]
          },
          "docs": "Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals, and other groups as members."
        },
        {
          "info": {
            "name": "Microsoft Add group member",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{region}.api.cognitive.microsoft.com/groups/:group-id/members/$ref",
            "params": [
              {
                "name": "group-id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the group"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add a member to a Microsoft 365 group or a security group through the members navigation property."
        },
        {
          "info": {
            "name": "Microsoft List group owners",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{region}.api.cognitive.microsoft.com/groups/:group-id/owners",
            "params": [
              {
                "name": "group-id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the group"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Number of items to return (page size)"
              }
            ]
          },
          "docs": "Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to manage the group."
        }
      ]
    }
  ],
  "bundled": true
}