Reputation: 886
i used PUT https://graph.microsoft.com/v1.0/users/<id</drive/root:/test123.docx:/content
with content type "application/vnd.openxmlformats-officedocument.wordprocessingml.document" and data "Hello world"
It gives me a web url. However when i open it i get this screen
When i use download url to open it on desktop, it opens in word app.
I can open other drive docs which were manually created but not this auto generated one
Upvotes: 0
Views: 52
Reputation: 886
It seems that the reason is it takes only binary not plain text in the data.
Upvotes: 0