POST api/{programid}/MyAccountMigration/Consumers/{pplId}/ContactInfo

Updates consumer mobile phone and email address information.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

Program Id

string

Required

pplId

Consumer number/PPL Id

string

Required

Body Parameters

Contact information

UpdateContactInfoParams
NameDescriptionTypeAdditional information
EmailAddress

string

None.

MobilePhoneNo

string

None.

HasMobilePhoneNo

boolean

None.

HasEmailAddress

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EmailAddress": "sample string 1",
  "MobilePhoneNo": "sample string 2",
  "HasMobilePhoneNo": true,
  "HasEmailAddress": true
}

application/xml, text/xml

Sample:
<UpdateContactInfoParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.WebApi.Models.MyAccountMigration">
  <EmailAddress>sample string 1</EmailAddress>
  <MobilePhoneNo>sample string 2</MobilePhoneNo>
</UpdateContactInfoParams>

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 'UpdateContactInfoParams'.

Response Information

Resource Description

Success message

UpdateContactInfoResponse
NameDescriptionTypeAdditional information
Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<UpdateContactInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.WebApi.Models.MyAccountMigration">
  <Message>sample string 1</Message>
</UpdateContactInfoResponse>