{"action":"created","issue":{"url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/156","labels_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/156/comments","events_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/156/events","html_url":"https://github.com/OneDrive/onedrive-api-docs/issues/156","id":93393560,"number":156,"title":"Onedrive Business - Rename file/folder in root folder","user":{"login":"bscharm","id":5092793,"avatar_url":"https://avatars.githubusercontent.com/u/5092793?v=3","gravatar_id":"","url":"https://api.github.com/users/bscharm","html_url":"https://github.com/bscharm","followers_url":"https://api.github.com/users/bscharm/followers","following_url":"https://api.github.com/users/bscharm/following{/other_user}","gists_url":"https://api.github.com/users/bscharm/gists{/gist_id}","starred_url":"https://api.github.com/users/bscharm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bscharm/subscriptions","organizations_url":"https://api.github.com/users/bscharm/orgs","repos_url":"https://api.github.com/users/bscharm/repos","events_url":"https://api.github.com/users/bscharm/events{/privacy}","received_events_url":"https://api.github.com/users/bscharm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/labels/OneDrive%20for%20Business","name":"OneDrive for Business","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"ificator","id":8387253,"avatar_url":"https://avatars.githubusercontent.com/u/8387253?v=3","gravatar_id":"","url":"https://api.github.com/users/ificator","html_url":"https://github.com/ificator","followers_url":"https://api.github.com/users/ificator/followers","following_url":"https://api.github.com/users/ificator/following{/other_user}","gists_url":"https://api.github.com/users/ificator/gists{/gist_id}","starred_url":"https://api.github.com/users/ificator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ificator/subscriptions","organizations_url":"https://api.github.com/users/ificator/orgs","repos_url":"https://api.github.com/users/ificator/repos","events_url":"https://api.github.com/users/ificator/events{/privacy}","received_events_url":"https://api.github.com/users/ificator/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-07-06T22:39:32Z","updated_at":"2015-12-14T18:27:42Z","closed_at":"2015-12-14T18:27:42Z","body":"When I try to rename/move a file or folder in the root folder I get an incorrect argument error, but when renaming/moving to other folders it works fine. This is on the PATCH by id or by path.\r\n\r\nExample of body when renaming in/into root:\r\n`{\"parentReference\":{\"path\":\"/drive/root:\"},\"name\":\"yodanew.jpeg\"}`\r\n\r\nExample of body when renaming in/into non-root:\r\n`{\"parentReference\":{\"path\":\"/drive/root:/foo\"},\"name\":\"yodanew2.jpeg\"}`\r\n\r\nHere are the response headers on the failed call (getting back a 400):\r\n```{date=[Mon, 06 Jul 2015 22:38:28 GMT], server=[Microsoft-IIS/8.5], x-ms-invokeapp=[1; RequireReadOnly], expires=[Sun, 21 Jun 2015 22:38:28 GMT], transfer-encoding=[chunked], x-aspnet-version=[4.0.30319], x-sharepointhealthscore=[0], x-frame-options=[SAMEORIGIN], microsoftsharepointteamservices=[16.0.0.4121], request-id=[217b179d-a0a0-2000-381a-f0b19c97669c], p3p=[CP=\"ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI\"], spclientservicerequestduration=[128], last-modified=[Mon, 06 Jul 2015 22:38:28 GMT], x-sp-serverstate=[ReadOnly=0], sprequestguid=[217b179d-a0a0-2000-381a-f0b19c97669c], x-content-type-options=[nosniff], x-powered-by=[ASP.NET], content-type=[application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8], cache-control=[private, max-age=0], odata-version=[4.0]}```"},"comment":{"url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/comments/164518083","html_url":"https://github.com/OneDrive/onedrive-api-docs/issues/156#issuecomment-164518083","issue_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/156","id":164518083,"user":{"login":"ificator","id":8387253,"avatar_url":"https://avatars.githubusercontent.com/u/8387253?v=3","gravatar_id":"","url":"https://api.github.com/users/ificator","html_url":"https://github.com/ificator","followers_url":"https://api.github.com/users/ificator/followers","following_url":"https://api.github.com/users/ificator/following{/other_user}","gists_url":"https://api.github.com/users/ificator/gists{/gist_id}","starred_url":"https://api.github.com/users/ificator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ificator/subscriptions","organizations_url":"https://api.github.com/users/ificator/orgs","repos_url":"https://api.github.com/users/ificator/repos","events_url":"https://api.github.com/users/ificator/events{/privacy}","received_events_url":"https://api.github.com/users/ificator/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T18:27:42Z","updated_at":"2015-12-14T18:27:42Z","body":"This issue was actually fixed quite a while ago. Please open again if you believe otherwise."}}