{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft 365 (Microsoft Graph API)",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Me",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get the signed-in user's profile",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me"
          },
          "docs": "Get the signed-in user's profile"
        },
        {
          "info": {
            "name": "Get the signed-in user's manager",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/manager"
          },
          "docs": "Get the signed-in user's manager"
        },
        {
          "info": {
            "name": "Get groups and directory roles the user is a member of",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/memberOf"
          },
          "docs": "Get groups and directory roles the user is a member of"
        }
      ]
    },
    {
      "info": {
        "name": "Mail",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List the signed-in user's messages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/messages",
            "params": [
              {
                "name": "$filter",
                "value": "",
                "type": "query"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List the signed-in user's messages"
        }
      ]
    },
    {
      "info": {
        "name": "Calendar",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List the signed-in user's calendar events",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/events"
          },
          "docs": "List the signed-in user's calendar events"
        }
      ]
    },
    {
      "info": {
        "name": "Files",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List items in the signed-in user's OneDrive root",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/drive/root/children"
          },
          "docs": "List items in the signed-in user's OneDrive root"
        }
      ]
    },
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List users in the organization",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/users"
          },
          "docs": "List users in the organization"
        },
        {
          "info": {
            "name": "Create a user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/users",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a user"
        },
        {
          "info": {
            "name": "Get a user by id or userPrincipalName",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/users/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a user by id or userPrincipalName"
        },
        {
          "info": {
            "name": "Update a user",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://graph.microsoft.com/v1.0/users/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a user"
        },
        {
          "info": {
            "name": "Delete a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.microsoft.com/v1.0/users/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a user"
        }
      ]
    },
    {
      "info": {
        "name": "Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/groups"
          },
          "docs": "List groups"
        },
        {
          "info": {
            "name": "Create a group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/groups"
          },
          "docs": "Create a group"
        },
        {
          "info": {
            "name": "Get a group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/groups/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a group"
        },
        {
          "info": {
            "name": "List members of a group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/groups/:id/members",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List members of a group"
        }
      ]
    },
    {
      "info": {
        "name": "Teams",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List the channels of a team",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/teams/:team-id/channels",
            "params": [
              {
                "name": "team-id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List the channels of a team"
        },
        {
          "info": {
            "name": "List messages in a channel",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/teams/:team-id/channels/:channel-id/messages",
            "params": [
              {
                "name": "team-id",
                "value": "",
                "type": "path"
              },
              {
                "name": "channel-id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List messages in a channel"
        },
        {
          "info": {
            "name": "Send a message to a channel",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/teams/:team-id/channels/:channel-id/messages",
            "params": [
              {
                "name": "team-id",
                "value": "",
                "type": "path"
              },
              {
                "name": "channel-id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Send a message to a channel"
        }
      ]
    }
  ],
  "bundled": true
}