API Documentation
|
where {orgGroupId}
is the ID of an organisation and {objectId}
is the ID of a file object/Secure Object created within this organisation.
PUT
- disables or (re-)enables a file object/Secure Object (specified by objectId
) within an organisation (specified by orgGroupId
).Note: This method takes no parameters.
This API endpoint disables or (re-)enables a single file object (specified by objectId
) within an organisation (specified by orgGroupId
).
Calling this endpoint on a given file object successively toggles between disabling or (re-)enabling this file object.
A file object's ID can be obtained using the <access-service>/api/v1/organisations/{orgGroupId}/objects API endpoint, which retrieves a list of high-level information associated with file objects that can be filtered using a variety of search criteria.
This API endpoint supports the following Cocoon Data user roles (as described in the Organisation Administrator's Guide):
{orgGroupId}
in the request's 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.