Set/Update notifications
Creates or updates the current user's notification subscription for the specified folder. Optionally applies the same settings to all nested subfolders. Returns HTTP 201 if a new subscription was created, or HTTP 200 if an existing one was updated.
The unique identifier of the folder.
Set notification for nested folders as well
Offset
Limit
Determines the detail level of the response body.
Number of files added to the notification
Number of comments added to the notification
Indicates whether HATEOAS links should be included in the response
Notification subscription set successfully.
Unique identifier of the folder included in the notification
Number of files added to the notification
Number of comments added to the notification
HATEOAS links associated with the entity
Unique identifier of the user who receives the notification
Unprocessable Content
Possible error codes: ERR_INPUT_NOT_INTEGER
Error code
Error message
Request blocked by WAF
curl -X PUT \
"https://{instance}.kiteworks.com/rest/folders/:id/actions/setNotifications" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fileAdded": 1,
"commentAdded": 1,
"addLinks": true
}'import requests
id = "VALUE" # The unique identifier of the folder.
url = f"https://{{instance}}.kiteworks.com/rest/folders/{id}/actions/setNotifications"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"fileAdded": 1,
"commentAdded": 1,
"addLinks": true
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())List notifications
Returns a paginated list of notification subscriptions for the current user, including the folder each subscription is for and the enabled notification types.
Filter notifications by the ID of the user who receives them.
Filter notifications by the ID of the user who receives them.. Search for results that match any of the specified values for this parameter.
Filter notifications by the ID of the folder they are associated with.
Filter notifications by the ID of the folder they are associated with.. Search for results that match any of the specified values for this parameter.
Filter notifications triggered when a file is added.
Filter notifications triggered when a comment is added.
Sorting options
Offset
Limit
With parameters
Determines the detail level of the response body.
List of notification subscriptions retrieved successfully.
Unique identifier of the folder included in the notification
Number of files added to the notification
Number of comments added to the notification
HATEOAS links associated with the entity
Unique identifier of the user who receives the notification
Total number of items available.
Maximum number of items returned per page.
Number of items skipped before the current page.
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/notifications" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/notifications"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Remove notification options
Unsubscribes the current user from all notifications for the specified folder.
Object ID of the folder to remove notification options
Notification subscription removed successfully.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/notifications/:object_id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
object_id = "VALUE" # Object ID of the folder to remove notification options
url = f"https://{{instance}}.kiteworks.com/rest/notifications/{object_id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())