Update NotificationContact

put

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

Updates an existing Notification Contact. This endpoint returns the same response in both cases when a contact is updated and when the update does not modify the contact. If the update contains a phoneSMS, then the opt in workflow is also triggered.

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
Data used to create or update the Notification Contact
Root Schema : NotificationContactRequest
Type: object
Show Source
Example:
{
    "name":"Jane Doe",
    "email":"jane.doe@example.com",
    "phoneSMS":"555-123-1234",
    "phoneVoice":"555-123-1234",
    "push":true
}
Back to Top

Response

Supported Media Types

200 Response

The notification contact was updated (or the update had no effect). The returned entity reflects the updated values.
Body ()
Root Schema : NotificationContact
Type: object
Show Source
Nested Schema : response
Match All
Show Source
Nested Schema : NotificationContactRequest
Type: object
Show Source
Example:
{
    "name":"Jane Doe",
    "email":"jane.doe@example.com",
    "phoneSMS":"555-123-1234",
    "phoneVoice":"555-123-1234",
    "push":true
}
Nested Schema : response-allOf[1]
Type: object
Show Source
Example:
{
    "id":1,
    "name":"Jane Doe",
    "email":"jane.doe@example.com",
    "phoneSMS":"555-123-1234",
    "phoneVoice":"555-123-1234",
    "primary":false
}

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