Skip to content

bulkDeleteUserPreferenceValues ​

Deletes multiple user preference values for a given user preference using the validIds (unique keys).

Intended usage is when a user preference has values of "A", "B", "C", "D". But you only want to delete B and A.

Request ​

http
DELETE /rest/user/preferences/{uPrefId}/bulk-delete

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

PATH VARIABLES: uPrefId (number, required) - the unique id of the user preferences to delete. This is the id created during createXYZ API calls.

SAMPLE REQUEST: http://localhost:8080/rest/user/preferences/29/bulk-delete

SAMPLE BODY:

json
{
    "uPrefValueIds" : [1,2]
}

Response ​

200 OK ​

RESPONSE:

json
{
    "errorCode" : 0,
    "errorMsg" : "OK"
}

Errors ​

ExceptionDescription
WSInvalidAuthTokenExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions
WSInvalidParameterExceptionSee Error Definitions
WSUserPreferenceServiceExceptionSee Error Definitions