The Open API specification for Synapse is now available for download!

Download Open API Spec

GET /entity/{id}/filepreview

Get the URL of the preview file associated with the current version of a FileEntity.

Note: This call will result in a HTTP temporary redirect (307), to the actual file URL if the caller meets all of the download requirements.

Resource URL

https://repo-prod.prod.sagebase.org/repo/v1/entity/{id}/filepreview

Resource URL Variables
{id} The ID of the FileEntity to get.
Parameters
redirect

optional

When set to false, the URL will be returned as text/plain instead of redirecting.
Resource Information
Authentication Required
Required OAuth Scopes download
HTTP Method GET
Request Object None
Response Object None