{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft 365 Copilot (Microsoft Graph)",
    "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": "User Content",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get the signed-in user's profile (Copilot grounding context)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me"
          },
          "docs": "Get the signed-in user's profile (Copilot grounding context)"
        },
        {
          "info": {
            "name": "List the signed-in user's mail",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/messages"
          },
          "docs": "List the signed-in user's mail"
        },
        {
          "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": "List items in the 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 user's OneDrive root"
        }
      ]
    },
    {
      "info": {
        "name": "Connectors",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Microsoft 365 Copilot connector connections",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/external/connections"
          },
          "docs": "List Microsoft 365 Copilot connector connections"
        },
        {
          "info": {
            "name": "Create a Copilot connector connection",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/external/connections",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a Copilot connector connection"
        },
        {
          "info": {
            "name": "Get a Copilot connector connection",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/external/connections/:connection-id",
            "params": [
              {
                "name": "connection-id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a Copilot connector connection"
        },
        {
          "info": {
            "name": "Delete a Copilot connector connection",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.microsoft.com/v1.0/external/connections/:connection-id",
            "params": [
              {
                "name": "connection-id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a Copilot connector connection"
        },
        {
          "info": {
            "name": "Get the schema of a connection",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/external/connections/:connection-id/schema",
            "params": [
              {
                "name": "connection-id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get the schema of a connection"
        },
        {
          "info": {
            "name": "Update the schema of a connection",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://graph.microsoft.com/v1.0/external/connections/:connection-id/schema",
            "params": [
              {
                "name": "connection-id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update the schema of a connection"
        }
      ]
    },
    {
      "info": {
        "name": "External Items",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create or update an external item",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://graph.microsoft.com/v1.0/external/connections/:connection-id/items/:item-id",
            "params": [
              {
                "name": "connection-id",
                "value": "",
                "type": "path"
              },
              {
                "name": "item-id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create or update an external item"
        },
        {
          "info": {
            "name": "Delete an external item",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.microsoft.com/v1.0/external/connections/:connection-id/items/:item-id",
            "params": [
              {
                "name": "connection-id",
                "value": "",
                "type": "path"
              },
              {
                "name": "item-id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete an external item"
        }
      ]
    },
    {
      "info": {
        "name": "Search",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Issue a Microsoft Search query (drives Copilot grounding)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/search/query",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Issue a Microsoft Search query (drives Copilot grounding)"
        }
      ]
    }
  ],
  "bundled": true
}