API Documentation
|
GET
- retrieves information about the notification preferences of a Cocoon Data user (whose access token is submitted in the request to this endpoint).PUT
- modifies the notification preferences for a Cocoon Data user (whose access token is submitted in the request to this endpoint).Note: The
GET
method takes no parameters.
This API endpoint serves a number of purposes:
This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide) and conditions:
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...
The following header is required if the body of the request has a JSON object:
Content-Type: application/json
The following parameters must be sent in the body of the PUT request, each as individual members of a JSON object:
ITEM
- Sets the Cocoon Data user (whose access token is submitted in the request to this endpoint) to receive email notifications (entitled 'New items have been shared with you') each time an item is shared with them. These email notifications contain links to the items (which had been shared with this user since their previous such notification), that opens the items in SafeShare for Web. Bear in mind that multiple items may appear as a 'digest' in a single email notification based on the Item shared noticication frequency in minutues property configured by a SafeShare administrator (described in the SafeShare Administrator's Guide). DAILY
- Sets this Cocoon Data user to receive a 'New items have been shared with you' email notification once a day, containing a digest of all items which had been shared with them since their previous such notification. WEEKLY
- Sets this user to receive a 'New items have been shared with you' email notification once a week, containing a digest of all items which had been shared with them since their previous such notification. NONE
- Sets this user to receive no 'New items have been shared with you' email notifications. 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:
true
) or not (false
) the notification preference is currently set for the Cocoon Data user (whose access token is submitted in the request to this endpoint). From PUT
requests to this endpoint, this value should be true
for the notification preference specified in the request to this endpoint (and false
for the others).