![]() |
API Documentation
|
where {objectId} is the ID of a file object/Secure Object and {versionId} is the ID of one of its versions.
PUT - sets the active version (specified by versionId) of a file object/Secure Object (specified by objectId).DELETE - deletes a version (specified by versionId) of a file object (specified by objectId), permanently.Note: Both of these methods take no other parameters.
This API endpoint serves a number of purposes:
versionId) of a file object (specified by objectId).versionId) of a file object (specified by objectId), permanently. This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide) and conditions:
{itemId} in the request's URL.{itemId} 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.)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.