title: Onedrive API - One of the provided arguments is not acceptable error received when listing children of a document library
body: <p>I'm attempting to retrieve the contents of a folder in a SharePoint Document Library using the OneDrive REST API.   </p>
  
  <p>We are following <a href="https://dev.onedrive.com/items/list.htm" rel="nofollow noreferrer">this documentation</a> here: </p>
  
  <p>The call that I construct is:</p>
  
  <p><code>GET https://{tenant}.sharepoint.com/sites/Lindson'sTeam/_api/v2.0/drives/{drive-id}/items/{item-id}/children</code></p>
  
  <p>This yields an error response:</p>
  
  <pre class="lang-json prettyprint-override"><code>{
      "error": {
          "code": "invalidRequest",
          "message": "One of the provided arguments is not acceptable."
      }
  }
  </code></pre>
  
  <p>Why would this occur?   </p>
  
  <p>I have verified that the item we are retrieving looks legitimate and has a child:</p>
  
  <p><code>https://{tenant}.sharepoint.com/sites/Lindson'sTeam/_api/v2.0/drives/{drive-id}/items/{item-id}</code></p>
  
  <pre class="lang-json prettyprint-override"><code>{
      "@odata.context": "https://lindsonresources.sharepoint.com/sites/Lindson'sTeam/_api/v2.0/$metadata#items/$entity",
      "@odata.type": "#oneDrive.item",
      "@odata.id": "https://lindsonresources.sharepoint.com/sites/Lindson'sTeam/_api/v2.0/drives/b!OV23drIi2EizXnhHJCU_rOeDApiWGMlDiw3J9cj0Mn3ihNYXTtJDTrfFQJqwaQcd/items/012YJ4V7D6JK42P6B6LNAKDB4QLXMDMVG5",
      "@odata.editLink": "drives/b!OV23drIi2EizXnhHJCU_rOeDApiWGMlDiw3J9cj0Mn3ihNYXTtJDTrfFQJqwaQcd/items/012YJ4V7D6JK42P6B6LNAKDB4QLXMDMVG5",
      "createdBy": {
          "application": {
              "id": "cc15fd57-2c6c-4117-a88c-83b1d56b4bbe",
              "displayName": "Microsoft Teams Services"
          },
          "user": {
              "email": "charles@lindsonresources.onmicrosoft.com",
              "id": "08360f17-3074-44bd-84f1-04bbf19cf49f",
              "displayName": "Charles Lindson"
          }
      },
      "createdDateTime": "2017-08-10T13:52:05Z",
      "eTag": "\"{A7B94A7E-3EF8-405B-A187-905DD83654DD},1\"",
      "id": "012YJ4V7D6JK42P6B6LNAKDB4QLXMDMVG5",
      "lastModifiedBy": {
          "application": {
              "id": "cc15fd57-2c6c-4117-a88c-83b1d56b4bbe",
              "displayName": "Microsoft Teams Services"
          },
          "user": {
              "email": "charles@lindsonresources.onmicrosoft.com",
              "id": "08360f17-3074-44bd-84f1-04bbf19cf49f",
              "displayName": "Charles Lindson"
          }
      },
      "lastModifiedDateTime": "2017-08-10T13:52:05Z",
      "name": "General",
      "parentReference": {
          "driveId": "b!OV23drIi2EizXnhHJCU_rOeDApiWGMlDiw3J9cj0Mn3ihNYXTtJDTrfFQJqwaQcd",
          "driveType": "documentLibrary",
          "id": "012YJ4V7F6Y2GOVW7725BZO354PWSELRRZ",
          "path": "/drives/b!OV23drIi2EizXnhHJCU_rOeDApiWGMlDiw3J9cj0Mn3ihNYXTtJDTrfFQJqwaQcd/root:"
      },
      "webUrl": "https://lindsonresources.sharepoint.com/sites/Lindson%27sTeam/Shared%20Documents/General",
      "cTag": "\"c:{A7B94A7E-3EF8-405B-A187-905DD83654DD},0\"",
      "fileSystemInfo": {
          "createdDateTime": "2017-08-10T13:52:05Z",
          "lastModifiedDateTime": "2017-08-10T13:52:05Z"
      },
      "folder": {
          "childCount": 1
      },
      "size": 18615279
  }
  </code></pre>