Create NotificationPreference

post

/apis/notification-contact-v1/{utilityCode}/customers/{id}/notification_contacts/{contactId}/notification_preferences

Creates a new Notification Preference for a contact. If the notification preference is for the SMS channel, then the opt in workflow is also triggered.

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
Data used to create the Notification Preference
Root Schema : NotificationPreferenceRequest
Type: object
Show Source
Example:
{
    "notificationChannel":"EMAIL",
    "eventType":"HOME_ENERGY"
}
Back to Top

Response

Supported Media Types

200 Response

The notification preference was created successfully.
Body ()
Root Schema : NotificationPreference
Type: object
Show Source
Nested Schema : response
Match All
Show Source
Nested Schema : NotificationPreferenceRequest
Type: object
Show Source
Example:
{
    "notificationChannel":"EMAIL",
    "eventType":"HOME_ENERGY"
}
Nested Schema : response-allOf[1]
Type: object
Show Source
Example:
{
    "id":1,
    "notificationChannel":"EMAIL",
    "eventType":"HOME_ENERGY"
}

400 Response

An error occurred processing the request. See the response body for more information.
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

401 Response

An error occurred processing the request. See the response body for more information.
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

404 Response

An error occurred processing the request. See the response body for more information.
Body ()
Root Schema : ErrorResponse
Type: object
Show Source
Back to Top