Skip to content

deleteUserPreferenceValue ​

Deletes a single user preference value

Intended usage is when a user preference has multiple values of "A", "B", "C", "D". but user only wants to deletea single value "A"

Request ​

http
DELETE /rest/user/preferences/{uPrefId}/value/{uPrefValueId}

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

ParameterTypeRequiredDescription
uPrefIdNumberYesPath variable. The unique id of the user preferences to delete. This is the id created during createXYZ API calls.
uPrefValueIdNumberYesPath variable. The unique id of the user preferences 'value' to update. This is the id created during createXYZ API calls.

SAMPLE REQUEST: http://localhost:8080/rest/user/preferences/29/value/1

Response ​

200 OK ​

RESPONSE:

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

Errors ​

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