title: Why can't I create a managed device on Intune?
body: <p>I am trying to create a managed device in Intune but I am getting different errors.<br/>
  <br>This is the documentation I am using <a href="https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/intune_devices_manageddevice_create" rel="nofollow noreferrer">https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/intune_devices_manageddevice_create</a>.<br/>
  <br>I am testing the functionality using Graph Explorer so I do not need the authorization token and the account I am logged into is the global administrator and has the appropriate delegated permission enabled 'DeviceManagementManagedDevices.ReadWrite.All'.<br/>
  <br>When I try the first request  <code>/users/{usersId}/managedDevices</code> I get a 403
  <br><code>An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000</code>.
  <br>If I try <code>/deviceManagement/managedDevices</code> I get 400
  <br><code>No OData route exists that match template</code><br/></p>
  
  <p><br> I am signed up for a free trail for Intune and Azure AD if this makes any difference.</p>
  
  <p><br>What could I be missing?<br/>
  <br>The request body I based off the example in the documentation for create managedDevice. I also tried removing the odata type but it makes no difference.<br/>
  <br>An example I have tried</p>
  
  <pre><code> {
          "id": "5h5b3fab-0169-45de-9aad-3d928ebbe1a0",
          "userId": null,
          "deviceName": "newIntuneDev",
          "deviceActionResults": [],
          "enrolledDateTime": "2018-02-19T11:04:24.242385Z",
          "lastSyncDateTime": "2018-01-03T14:01:45.1553437Z",
          "operatingSystem": "Android",
          "complianceState": "compliant",
          "jailBroken": "false",
          "managementAgent": "mdm",
          "osVersion": "7.0",
          "easActivated": true,
          "easDeviceId": "DFC17B28459230B3",
          "easActivationDateTime": "2018-01-19T11:05:11.4483412Z",
          "azureADRegistered": true,
          "deviceEnrollmentType": "userEnrollment",
          "activationLockBypassCode": null,
          "emailAddress": null,
          "azureADDeviceId": "89f65205-72af-4830-a9b1-ebcd3160476f",
          "deviceRegistrationState": "registered",
          "deviceCategoryDisplayName": null,
          "isSupervised": false,
          "exchangeLastSuccessfulSyncDateTime": "0001-01-01T00:00:00Z",
          "exchangeAccessState": "none",
          "exchangeAccessStateReason": "none",
          "remoteAssistanceSessionUrl": "",
          "remoteAssistanceSessionErrorDetails": "",
          "isEncrypted": false,
          "userPrincipalName": null,
          "model": "SM-G930F",
          "manufacturer": "samsung",
          "imei": "539467078998547",
          "complianceGracePeriodExpirationDateTime": "9999-12-31T23:59:59.9999999Z",
          "serialNumber": "T58H52RP9KN",
          "phoneNumber": null,
          "androidSecurityPatchLevel": "2018-01-01",
          "userDisplayName": null,
          "configurationManagerClientEnabledFeatures": {
              "inventory": false,
              "modernApps": false,
              "resourceAccess": false,
              "deviceConfiguration": false,
              "compliancePolicy": false,
              "windowsUpdateForBusiness": false
          },
          "wiFiMacAddress": "4C6641183631",
          "deviceHealthAttestationState": null,
          "subscriberCarrier": "",
          "meid": "659467078998547",
          "totalStorageSpaceInBytes": 0,
          "freeStorageSpaceInBytes": 0,
          "managedDeviceName": "newDevice",
          "partnerReportedThreatState": "unknown"
      }
  </code></pre>