GET /entity/{ownerId}/wiki2/{wikiId}/attachmentpreview
Get a URL that can be used to download a preview file for a given WikiPage file attachment.
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.
Note: The caller must be granted the ACCESS_TYPE.READ permission on the owner.
Resource URL
https://repo-prod.prod.sagebase.org/repo/v1/entity/{ownerId}/wiki2/{wikiId}/attachmentpreview
Resource URL Variables
{ownerId} | The ID of the owning Entity |
{wikiId} | The ID of the WikiPage |
Parameters
fileName | The name of the file to get. The file names can be found in the FileHandles from the GET /entity/{ownerId}/wiki/{wikiId}/attachmenthandles method. |
redirect optional |
When set to false, the URL will be returned as text/plain instead of redirecting. |
wikiVersion optional |
Resource Information | |
---|---|
Authentication | Required |
Required OAuth Scopes | download |
HTTP Method | GET |
Request Object | None |
Response Object | None |