API Documentation
|
where {objectId}
is the ID of a file object/Secure Object.
GET
- retrieves the cryptographic key required to decrypt the read-only view of the active version of a file object/Secure Object (specified by objectId
).Note: This method takes no parameters.
This API endpoint retrieves the cryptographic key required to decrypt the read-only view of the active version of a file object (specified by objectId
).
This key is automatically generated after uploading a file object's data to storage (via the <content-service>/api/v1/objects/{objectId}/contents API endpoint) and both of the following criteria have been met:
A file object's ID can be obtained by calling the <access-service>/api/v1/organisations/{orgId}/items API endpoint, which retrieves a list of information associated with file objects that can be filtered using various 'search' criteria.
This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide) and conditions:
{objectId}
in the request's URL.{objectId}
in the URL.The Cocoon Data Platform's resources available to a Cocoon Data user meeting the criteria above is determined by the access token submitted in the header of requests to this endpoint.
The appropriate access token as the Bearer
token:
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned:
AES
.