URL structure
{versionId} is the ID of a file object’s/Secure Object’s version.
Supported methods and overview
GET- downloads the data associated with a specific file object/Secure Object version (specified byversionId) from storage via the Covata Platform’s Content Service.
Detailed description
This API endpoint downloads the data associated with a specific file object version (specified byversionId) from storage via the Covata Platform’s Content Service.
This data can be downloaded in either unencrypted or encrypted form.
- Data is only stored (via the Content Service) in its encrypted form.
- Whenever data is downloaded from the Content Service in unencrypted form, it is decrypted (after being retrieved from storage) through a separate Content Service process.
Supported roles and conditions
This API endpoint supports requests utilising Covata user accounts with the following roles (as described in the Organisation Administrator’s Guide) and conditions:- Originator - when this user owns the file object associated with the version whose ID is specified by
{versionId}in the request’s URL. - Originator, Collaborator and Ad hoc - when this user is a collaborator with the Rename permission on the file object associated with the version whose ID is specified by
{versionId}in the URL. (The Rename permission restricts access to collaborators who have been applied either the Modify or Manage permission set on this file object.)
Required headers
The appropriate access token as theBearer token:
Authorisation: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
Required parameters
The following optional parameter can be sent in the URL of the request:-
format - Specify either the value
plaintextif downloading the file version’s data in its decrypted form orencryptedif downloading the file version’s encrypted data ‘as is’; e.g. decryption will be conducted locally by the client application.
Example:
Optional parameters
The following optional parameter can be sent in the URL of the request:-
encoding - Specify the value
base64to download the file version’s data as Base64-encoded data. Otherwise, omit this parameter to download the file version’s data as raw/binary data. In both cases, theContent-Typein the response isapplication/octet-stream. Example:
Returns
If the request succeeded, then an HTTP response status200 OK is returned.
