Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for updating an existing file is missing colons? #1865

Open
jamesncl opened this issue Jul 20, 2024 · 0 comments
Open

Example for updating an existing file is missing colons? #1865

jamesncl opened this issue Jul 20, 2024 · 0 comments

Comments

@jamesncl
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant