Delete User and Application Preferences for the Logged in User
delete
/ic/api/process/v1/preferences
Delete user and application preferences for the logged in user. You must be an administrator to delete application preferences.
Request
Supported Media Types
- application/json
PreferenceDeleteRequest Object
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : preferencesResponse
Type:
Show Source
object
-
appPrefResponse(optional):
object appPrefResponse
Additional Properties Allowed: additionalProperties
-
invalidUsers(optional):
array invalidUsers
-
levels(optional):
integer(int32)
-
links(optional):
array links
-
message(optional):
string
-
title(optional):
string
-
userPrefResponse(optional):
object userPrefResponse
Additional Properties Allowed: additionalProperties
400 Response
Bad request
401 Response
Unauthorized
500 Response
Internal Server Error
Examples
The following example shows how to delete user and application preferences by submitting a DELETE request on the REST resource.
Example: Delete vacation rules, notification time zone, and all application preferences
Users can delete their own user preferences but only administrators can delete application preferences.
Send Request:
DELETE https://example.com/ic/api/process/v1/preferences
Request Body:
{
"userPrefKeys" : ["VACATION_RULE","NOTIFICATION_TZ"],
"deleteAllAppPreferences" : true
}
Example: Delete all user and application preferences
Users can delete their own user preferences but only administrators can delete application preferences.
Send Request:
DELETE https://example.com/ic/api/process/v1/preferences
Request Body:
{
"deleteAllUserPreferences" : true,
"deleteAllAppPreferences" : true
}