Hello,Thank you for contacting Microsoft Support.
I have successfully implemented the same Graph API call in Postman and received the response. However, it is not possible to use Microsoft Graph Explorer to download files.
The 400 Bad Request
error typically indicates that something is wrong with the syntax of the request. Here are a few steps you can take to troubleshoot and resolve the issue:
- Check the File Format: Ensure that the file you’re trying to convert is indeed a
.pptx
file. The Graph API supports conversion from.pptx
to.pdf
. - Verify the Item ID: Make sure that the
{drive-id}
&{item-id}
you’re using in the request URL is correct and that it corresponds to a PPTX file in your OneDrive. - Correct Scopes: The
Files.Read
scope should be sufficient for reading the file content, but you might also need theFiles.Read.All
orSites.Read.All
scopes if you’re accessing shared files or sites. - Authorization Token: Confirm that the access token is valid and has not expired. It should have the necessary permissions to access the file.
Please refer https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&tabs=http.
If you continue to experience the issue, I recommend raising a support case with Microsoft Graph. A Support Engineer will then be able to investigate the issue further and provide you with assistance. You can raise support ticket from New support request - Microsoft Entra admin center or https://admin.microsoft.com/#/support/requests.
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.