POST api/v2/Account/UpdateHowYouFoundUs

Request Information

URI Parameters

None.

Body Parameters

HearAboutUsViewModel
NameDescriptionTypeAdditional information
UserId

string

Required

HearAboutUs

string

Required

HearAboutUsOther

string

None.

IsAgreeTNC

boolean

None.

IsAgreePharmacyNomination

boolean

None.

IsAgreeToAccessSummaryRecord

boolean

None.

FirstName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "HearAboutUs": "sample string 2",
  "HearAboutUsOther": "sample string 3",
  "IsAgreeTNC": true,
  "IsAgreePharmacyNomination": true,
  "IsAgreeToAccessSummaryRecord": true,
  "FirstName": "sample string 7"
}

application/xml, text/xml

Sample:
<HearAboutUsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CodaPharma.Models.AdminModel">
  <FirstName>sample string 7</FirstName>
  <HearAboutUs>sample string 2</HearAboutUs>
  <HearAboutUsOther>sample string 3</HearAboutUsOther>
  <IsAgreePharmacyNomination>true</IsAgreePharmacyNomination>
  <IsAgreeTNC>true</IsAgreeTNC>
  <IsAgreeToAccessSummaryRecord>true</IsAgreeToAccessSummaryRecord>
  <UserId>sample string 1</UserId>
</HearAboutUsViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
Status

ResStatus

None.

ErrorMessage

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 0,
  "ErrorMessage": "sample string 1",
  "Data": {}
}

application/xml, text/xml

Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CodaPharma.Api.Models">
  <Data />
  <ErrorMessage>sample string 1</ErrorMessage>
  <Status>Fail</Status>
</ResponseModel>