Get specific Loop file version exported and converted in html format

Marco De Toni 20 Reputation points
2024-10-17T08:15:21.19+00:00

Hi,

I'm using this API
https://graph.microsoft.com/v1.0/sites/{site_id}/drive/items/{item_id}/content?format=html
to extract a Loop file in HTML format and it works

I would like to use also the version API
https://graph.microsoft.com/v1.0/sites/{site_id}/drive/items/{item_id}/versions/{version_id}/content?format=html
but in this moment seems it is not supported

am I doing right?

Microsoft Security | Microsoft Graph
{count} votes

Answer accepted by question author
  1. Hitesh Pachipulusu - MSFT 3,635 Reputation points Microsoft External Staff
    2024-10-17T08:26:14.8833333+00:00

    Hello Marco De Toni,

    Thank you for reaching out to Microsoft Support!

    It looks like you're on the right track with using the Microsoft Graph API to extract Loop files in HTML format. However, as of now, the version API for extracting Loop files in HTML format is not supported.

    The current API allows you to retrieve the contents of an item in a specific format, including HTML, but this functionality does not extend to specific versions of the item. You can only get the metadata of Loop files and not the contents directly, as they are encrypted.

    You can submit this feature request using this support link, which will be monitored by Microsoft team and make the enhancements to Graph API.

    Hope this helps.

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

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-10-17T08:38:22.6133333+00:00

    Hello Marco De Toni,

    Thank you for reaching out to Microsoft Support!

    According to the document, the/sites/{site_id}/drive/items/{item_id}/versions/{version_id}/content?format=html request mode is not supported, and there are only two request paths that can be used.

    User's image

    Only List versions endpoints are currently available for version.

    Hope this helps.

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

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.