0
votes

I'm following the instructions https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_move to move a file to a new folder through the REST api and it doesn't work. THe URL I use are

"/drive/items/014LYBHNMWA5UQYF4QGRFZDOTYFZEUTXZX" and "/me/drive/items/014LYBHNMWA5UQYF4QGRFZDOTYFZEUTXZX". The body of the request is

{"parentReference" : {"id": "014LYBHNOQBL7MB23DNVGJP355BSMQOLTY"}}

I get the following error with either URI. What am I doing wrong?

[{
  "error": {
    "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
    "message": "The parameter parentReference does not exist in method GetById.",
    "innerError": {
      "request-id": "3d569cf4-799c-47e0-918a-3fbb30e7a13c",
      "date": "2016-02-25T15:25:54"
    }
  }
}
, 400, Bad Request]
1

1 Answers

0
votes

It looks like this error is returned when you attempt to POST instead of PATCH.