API to convert doc to docx file

Yamilla Manjko 6 Reputation points

I can create a doc file using a script, the file is uploaded to OneDrive but I cannot edit the doc file on OneDrive using word online, only Docx files can be edited.
Is there some way to convert doc to Docx using an API or some kind of automation?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,782 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points

    Hi @Yamilla Manjko

    Thanks for reaching out!

    Please find below documentation to find out valid Fomat Conversions/Options in v1.0 and beta.

    1. https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&tabs=http#format-options
    2. https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-beta&tabs=http#query-parameters

    Note: APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

    Since your requested feature/functionality is presently not available, you can submit a feature request idea using this support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments