POST api/Customer/UpdateEmail

Request Information

URI Parameters

None.

Body Parameters

UpdateEmail
NameDescriptionTypeAdditional information
PolicyId

integer

None.

ClientId

integer

None.

CurrentEmail

string

Matching regular expression pattern: [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?

NewEmail

string

Matching regular expression pattern: [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?

ImageUrl

string

None.

SiteCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PolicyId": 1,
  "ClientId": 2,
  "CurrentEmail": "sample string 3",
  "NewEmail": "sample string 4",
  "ImageUrl": "sample string 5",
  "SiteCode": "sample string 6"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateEmail'.

Response Information

Resource Description

UpdateEmailResponse
NameDescriptionTypeAdditional information
IsError

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsError": true,
  "ErrorCode": "sample string 2",
  "ErrorMessage": "sample string 3"
}