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 .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/UpdateUserRegistrationEmailRequest HTTP/1.1
Host: regapi.pumpalarm.com
Content-Type: text/csv
Content-Length: length
{"OldEmail":"String","NewEmail":"String","NewPassword":"String","SendResetEmail":false,"Requester":"String"}
HTTP/1.1 200 OK Content-Type: text/csv 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}