Events
Microsoft 365 Community Conference
May 6, 2 PM - May 9, 12 AM
Skill up for the era of AI at the ultimate community-led Microsoft 365 event, May 6-8 in Las Vegas.
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The GetShareUrl operation returns a share URL that's suitable for viewing a shared file when launched in a web browser.
The GetShareUrl operation returns a Share URL that's suitable for viewing a shared file when launched in a web browser. A host can support multiple Share URL types, as described by the SupportedShareUrlTypes property. The X-WOPI-UrlType request header contains the Share URL type that should be returned.
If the X-WOPI-UrlType header is not present or contains a value that's invalid or not supported by the host, the host should respond with a 501 Not Implemented.
X-WOPI-Override – The string GET_SHARE_URL
. This header is required.
X-WOPI-UrlType – A string indicating what Share URL type to return. This header is required.
200 OK – Success
401 Unauthorized – Invalid access token
404 Not Found – Resource not found/user unauthorized
500 Internal Server Error – Server error
501 Not Implemented – Operation not supported
Note
Standard WOPI request and response headers
In addition to the request/response headers listed here, this operation may also use the Standard WOPI request and response headers.
The response to a GetShareUrl
call is JSON containing the following required property:
Events
Microsoft 365 Community Conference
May 6, 2 PM - May 9, 12 AM
Skill up for the era of AI at the ultimate community-led Microsoft 365 event, May 6-8 in Las Vegas.
Learn more