GET /access_requirement/{ownerId}/wiki2/{wikiId}/attachment
Get a URL that can be used to download a 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.
Resource URL
https://repo-prod.prod.sagebase.org/repo/v1/access_requirement/{ownerId}/wiki2/{wikiId}/attachment
Resource URL Variables
| {ownerId} | The ID of the owning Access Requirement |
| {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 /accessRequirement/{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 |