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
Body ()
PreferenceDeleteRequest Object
Root Schema : preferencesResponse
Type: object
Show Source
Nested Schema : appPrefKeys
Type: array
Show Source
Nested Schema : userPrefKeys
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : preferencesResponse
Type: object
Show Source
Nested Schema : appPrefResponse
Type: object
Additional Properties Allowed
Show Source
Nested Schema : invalidUsers
Type: array
Show Source
Nested Schema : userPrefResponse
Type: object
Additional Properties Allowed
Show Source

400 Response

Bad request

401 Response

Unauthorized

500 Response

Internal Server Error
Back to Top

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
} 
Back to Top