You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just getting started with Graph API so apologies if I'm mistaken here, but I was struggling to update the contents of an existing file on OneDrive using the example:
PUT /me/drive/items/{item-id}/content
Content-Type: text/plain
The contents of the file goes here.
In my case I'm using an app folder. The only way I could get this to work was to use colons, in the same way as the example furhter up the page for uploading new files.
So in my case, following the example format, this was not working:
PUT "v1.0/me/drive/special/approot/items/{existingFileId}/content"
But this worked:
PUT "v1.0/me/drive/special/approot:/items/{existingFileId}:/content"
So I think maybe the example code is incorrect
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 350cd850-d19a-ef5c-2761-e342fc3c506c
Version Independent ID: 5bf3ef39-f20a-6c7f-77f6-3bc7e9d246f4
I'm just getting started with Graph API so apologies if I'm mistaken here, but I was struggling to update the contents of an existing file on OneDrive using the example:
In my case I'm using an app folder. The only way I could get this to work was to use colons, in the same way as the example furhter up the page for uploading new files.
So in my case, following the example format, this was not working:
But this worked:
So I think maybe the example code is incorrect
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: