Delete NotificationPreference
delete
/apis/notification-contact-v1/{utilityCode}/customers/{id}/notification_contacts/{contactId}/notification_preferences/{preferenceId}
Attempts to delete a Notification preference
Request
Path Parameters
-
contactId(required): integer
The single-tenant id for the notification contact (e.g. `2`).
-
id(required): integer
The single-tenant id for the customer (e.g. `1`).
-
preferenceId(required): integer
The single-tenant id for the notification preference (e.g. `3`).
-
utilityCode(required): string
The 3 or 4 digit code for the utility company (e.g. `TEST`).
Query Parameters
-
auditAgency: string
The auditing agency to record for this delete. Possible values are `CUSTOMER`, `OTHER`, and `UNKNOWN`.
Header Parameters
-
Authorization(required): string
The authorization header (e.g. `Authorization: Bearer $YOUR_TOKEN`).
Response
Supported Media Types
- application/json
200 Response
The notification preference was deleted successfully.
Nested Schema : NotificationPreferenceRequest
Type:
Show Source
object
-
eventType(required):
string
The name of this type of communication for which there is a notification preference
-
notificationChannel(required):
string
Allowed Values:
[ "EMAIL", "IVR", "SMS", "PRINT", "PUSH" ]
The channel over which communications are delivered to a notification contact
Example:
{
"notificationChannel":"EMAIL",
"eventType":"HOME_ENERGY"
}
Nested Schema : response-allOf[1]
Type:
Show Source
object
Example:
{
"id":1,
"notificationChannel":"EMAIL",
"eventType":"HOME_ENERGY"
}
400 Response
An error occurred processing the request. See the response body for more information.
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.
401 Response
An error occurred processing the request. See the response body for more information.
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.
404 Response
An error occurred processing the request. See the response body for more information.
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.