{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Graph Word Body API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
      "accessTokenUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Body",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Word Get Body",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/documents/:document-id/body",
            "params": [
              {
                "name": "document-id",
                "value": "doc-a1b2c3d4",
                "type": "path",
                "description": "The unique identifier of the Word document."
              }
            ]
          },
          "docs": "Get the body object of the document containing the main content."
        },
        {
          "info": {
            "name": "Microsoft Word Insert Text",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/documents/:document-id/body/insertText",
            "params": [
              {
                "name": "document-id",
                "value": "doc-a1b2c3d4",
                "type": "path",
                "description": "The unique identifier of the Word document."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Insert text at the specified location in the document body."
        },
        {
          "info": {
            "name": "Microsoft Word Insert HTML",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/documents/:document-id/body/insertHtml",
            "params": [
              {
                "name": "document-id",
                "value": "doc-a1b2c3d4",
                "type": "path",
                "description": "The unique identifier of the Word document."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Insert HTML content at the specified location in the document body."
        },
        {
          "info": {
            "name": "Microsoft Word Search Document",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/documents/:document-id/body/search",
            "params": [
              {
                "name": "document-id",
                "value": "doc-a1b2c3d4",
                "type": "path",
                "description": "The unique identifier of the Word document."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Search the document body for text matching the specified criteria."
        }
      ]
    }
  ],
  "bundled": true
}