Accepted zoom values for DriveItem Preview

Nils Weißer 0 Reputation points
2023-08-10T13:30:10.23+00:00

When obtaining a preview-link for a drive item as described here, you can send a "zoom" parameter in the request body.

Unfortunately, nowhere is mentioned, which values are accepted. The following can be found out just by trying:
"zoom": "1" -> Window size
"zoom": "2" -> 200%
"zoom": "3" -> 300%
...
"zoom": "0,3" -> 300% (the comma is removed)
"zoom": "0.75" -> Window size (nothing changes)
"zoom": "1.5" -> Window size (nothing changes)

How can I set zoom to e.g. 75% or even "window width"?
GitHub Issue

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

1 answer

Sort by: Most helpful
  1. msft-gu 1,355 Reputation points
    2023-08-10T17:03:32.9533333+00:00

    Hi Nils,

    Good afternoon and thank you for your question. I highly suggest providing feedback on the documentation and advised what information you will need to be updated. You can do this by going under the documentation, select This page under Submit and view feedback for. Request for the additional details on using zoom and the available parameters and values under driveItem: preview endpoint.

    I hope I was able to help you or redirect you in the right direction and may you have a great day ahead.


Your answer

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