sww
sww

Reputation: 886

Cannot view microsoft one drive api created docx

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

enter image description here

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

Answers (1)

sww
sww

Reputation: 886

It seems that the reason is it takes only binary not plain text in the data.

Upvotes: 0

Related Questions