{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Intune Graph Device Compliance Policies Managed Devices 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": "Managed Devices",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Intune List managed devices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices",
            "params": [
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Number of items to return in a result set."
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of items to skip in the result set."
              },
              {
                "name": "$search",
                "value": "",
                "type": "query",
                "description": "Search string for filtering results."
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression for filtering results."
              },
              {
                "name": "$count",
                "value": "",
                "type": "query",
                "description": "Include count of items in the result set."
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to sort the result set by."
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response."
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of relationships to expand and include in the response."
              }
            ],
            "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}}"
              }
            }
          },
          "docs": "List properties and relationships of the managedDevice objects. Returns all devices managed or pre-enrolled through Intune for the tenant."
        },
        {
          "info": {
            "name": "Microsoft Intune Create managed device",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "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}}"
              }
            }
          },
          "docs": "Create a new managedDevice object."
        },
        {
          "info": {
            "name": "Microsoft Intune Get managed device",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/:managedDeviceId",
            "params": [
              {
                "name": "managedDeviceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the managed device."
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response."
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of relationships to expand and include in the response."
              }
            ],
            "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}}"
              }
            }
          },
          "docs": "Read properties and relationships of a managedDevice object. Returns details for a single device managed through Intune."
        },
        {
          "info": {
            "name": "Microsoft Intune Update managed device",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/:managedDeviceId",
            "params": [
              {
                "name": "managedDeviceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the managed device."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "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}}"
              }
            }
          },
          "docs": "Update the properties of a managedDevice object."
        },
        {
          "info": {
            "name": "Microsoft Intune Delete managed device",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/:managedDeviceId",
            "params": [
              {
                "name": "managedDeviceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the managed device."
              }
            ],
            "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}}"
              }
            }
          },
          "docs": "Deletes a managedDevice."
        },
        {
          "info": {
            "name": "Microsoft Intune Retire a device",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/:managedDeviceId/retire",
            "params": [
              {
                "name": "managedDeviceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the managed device."
              }
            ],
            "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}}"
              }
            }
          },
          "docs": "Retire a device. Removes company data from the device while keeping personal data intact. The device is removed from Intune management."
        },
        {
          "info": {
            "name": "Microsoft Intune Wipe a device",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/:managedDeviceId/wipe",
            "params": [
              {
                "name": "managedDeviceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the managed device."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "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}}"
              }
            }
          },
          "docs": "Wipe a device. Factory resets the device, removing all data including both company and personal data."
        },
        {
          "info": {
            "name": "Microsoft Intune Sync a device",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/:managedDeviceId/syncDevice",
            "params": [
              {
                "name": "managedDeviceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the managed device."
              }
            ],
            "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}}"
              }
            }
          },
          "docs": "Trigger a sync for a managed device to check in with Intune."
        },
        {
          "info": {
            "name": "Microsoft Intune Remote lock a device",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/:managedDeviceId/remoteLock",
            "params": [
              {
                "name": "managedDeviceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the managed device."
              }
            ],
            "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}}"
              }
            }
          },
          "docs": "Remotely lock a managed device."
        },
        {
          "info": {
            "name": "Microsoft Intune Reset device passcode",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/:managedDeviceId/resetPasscode",
            "params": [
              {
                "name": "managedDeviceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the managed device."
              }
            ],
            "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}}"
              }
            }
          },
          "docs": "Reset the passcode on a managed device."
        },
        {
          "info": {
            "name": "Microsoft Intune Reboot a device",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/:managedDeviceId/rebootNow",
            "params": [
              {
                "name": "managedDeviceId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the managed device."
              }
            ],
            "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}}"
              }
            }
          },
          "docs": "Remotely reboot a managed device."
        }
      ]
    }
  ],
  "bundled": true
}