POST v1/Contacts/{contactID}/Websites

Update the websites for a contact.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contactID

Id of the contact

string

Required

Body Parameters

New websites for a contact

Collection of WebsiteDTO
NameDescriptionTypeAdditional information
WebsiteID

integer

None.

EntityID

integer

None.

ContactInfoTypeID

integer

None.

WebsiteUrl

string

None.

IsPrimary

boolean

None.

ContactInfoName

string

None.

ContactInfoCategory

string

None.

InternalCode

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "WebsiteID": 1,
    "EntityID": 2,
    "ContactInfoTypeID": 3,
    "WebsiteUrl": "sample string 4",
    "IsPrimary": true,
    "ContactInfoName": "sample string 6",
    "ContactInfoCategory": "sample string 7",
    "InternalCode": "sample string 8"
  },
  {
    "WebsiteID": 1,
    "EntityID": 2,
    "ContactInfoTypeID": 3,
    "WebsiteUrl": "sample string 4",
    "IsPrimary": true,
    "ContactInfoName": "sample string 6",
    "ContactInfoCategory": "sample string 7",
    "InternalCode": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfWebsiteDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Contacts">
  <WebsiteDTO>
    <ContactInfoCategory>sample string 7</ContactInfoCategory>
    <ContactInfoName>sample string 6</ContactInfoName>
    <ContactInfoTypeID>3</ContactInfoTypeID>
    <EntityID>2</EntityID>
    <InternalCode>sample string 8</InternalCode>
    <IsPrimary>true</IsPrimary>
    <WebsiteID>1</WebsiteID>
    <WebsiteUrl>sample string 4</WebsiteUrl>
  </WebsiteDTO>
  <WebsiteDTO>
    <ContactInfoCategory>sample string 7</ContactInfoCategory>
    <ContactInfoName>sample string 6</ContactInfoName>
    <ContactInfoTypeID>3</ContactInfoTypeID>
    <EntityID>2</EntityID>
    <InternalCode>sample string 8</InternalCode>
    <IsPrimary>true</IsPrimary>
    <WebsiteID>1</WebsiteID>
    <WebsiteUrl>sample string 4</WebsiteUrl>
  </WebsiteDTO>
</ArrayOfWebsiteDTO>

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 'List`1'.

Response Information

Resource Description

Action result

ActionResultDTO
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

InfoMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "ErrorCode": "sample string 2",
  "ErrorMessage": "sample string 3",
  "InfoMessage": "sample string 4"
}

application/xml, text/xml

Sample:
<ActionResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
  <ErrorCode>sample string 2</ErrorCode>
  <ErrorMessage>sample string 3</ErrorMessage>
  <InfoMessage>sample string 4</InfoMessage>
  <IsSuccess>true</IsSuccess>
</ActionResultDTO>