1
votes

I am able to get all files in folder using https://graph.microsoft.com/v1.0/shares/{SharedUrl}/root/children

but not able to upload file.

When i am trying to upload file it is throwing error:

"error": { "code": "BadRequest", "message": "Unsupported segment type.

Is it possible to upload files using api https://graph.microsoft.com/v1.0/shares/{SharedUrl} ?

1

1 Answers

0
votes

You cannot upload files using the shares endpoint. You need to upload files directly to the drive you want to store them.