| Required roles: | Admin, Admin |
| POST | /UpdateUserRegistrationEmail |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| OldEmail | body | string | Yes | Original Customer Email Address |
| NewEmail | body | string | Yes | New Customer Email Address |
| NewPassword | body | string | Yes | When changing the email we must also supply the password |
| SendResetEmail | body | bool | No | True if you want to send a Login Updated Email |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Requester | form | string | No | Identity of the caller |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Id | form | long | No | |
| DisplayName | form | string | No | |
| ResetEmailSent | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/UpdateUserRegistrationEmailRequest HTTP/1.1
Host: regapi.pumpalarm.com
Content-Type: application/json
Content-Length: length
{"OldEmail":"String","NewEmail":"String","NewPassword":"String","SendResetEmail":false,"Requester":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Id":0,"DisplayName":"String","ResetEmailSent":false}