PUT v1/Locations/{locationID}/Contacts/CustomerSources/{customerSourceID}

Update a customer source

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationID

Id of the loaction

string

Required

customerSourceID

Id of the customer source to be updated

string

Required

Body Parameters

Customer source

CustomerSourceDTO
NameDescriptionTypeAdditional information
CustomerSourceID

Id of the customer source

integer

None.

CustomerSource

Customer source

string

None.

SystemDefined

Signifies whether the customer source is system defined

boolean

None.

LocationID

Id of the location

integer

None.

AppCreated

App created

string

None.

ThirdPartyAppCode

Third party app code

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerSourceID": 1,
  "CustomerSource": "sample string 2",
  "SystemDefined": true,
  "LocationID": 1,
  "AppCreated": "sample string 4",
  "ThirdPartyAppCode": "sample string 5"
}

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

application/xml, text/xml

Sample:
<CustomerSourceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Locations">
  <AppCreated>sample string 4</AppCreated>
  <CustomerSource>sample string 2</CustomerSource>
  <CustomerSourceID>1</CustomerSourceID>
  <LocationID>1</LocationID>
  <SystemDefined>true</SystemDefined>
  <ThirdPartyAppCode>sample string 5</ThirdPartyAppCode>
</CustomerSourceDTO>

Response Information

Resource Description

Updated customer source

ActionResultDTOOfCustomerSourceDTO
NameDescriptionTypeAdditional information
Result

CustomerSourceDTO

None.

CreatedBy

string

None.

EntityID

integer

None.

RowSource

string

None.

PolicyID

integer

None.

IsSuccess

Signifies whether action is successful

boolean

None.

ErrorCode

Error code

string

None.

ErrorMessage

Error message

string

None.

InfoMessage

Information message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "CustomerSourceID": 1,
    "CustomerSource": "sample string 2",
    "SystemDefined": true,
    "LocationID": 1,
    "AppCreated": "sample string 4",
    "ThirdPartyAppCode": "sample string 5"
  },
  "CreatedBy": "sample string 1",
  "EntityID": 2,
  "RowSource": "sample string 3",
  "PolicyID": 4,
  "IsSuccess": true,
  "ErrorCode": "sample string 6",
  "ErrorMessage": "sample string 7",
  "InfoMessage": "sample string 8"
}

application/xml, text/xml

Sample:
<ActionResultOfCustomerSourceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
  <ErrorCode>sample string 6</ErrorCode>
  <ErrorMessage>sample string 7</ErrorMessage>
  <InfoMessage>sample string 8</InfoMessage>
  <IsSuccess>true</IsSuccess>
  <CreatedBy>sample string 1</CreatedBy>
  <EntityID>2</EntityID>
  <PolicyID>4</PolicyID>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Locations">
    <d2p1:AppCreated>sample string 4</d2p1:AppCreated>
    <d2p1:CustomerSource>sample string 2</d2p1:CustomerSource>
    <d2p1:CustomerSourceID>1</d2p1:CustomerSourceID>
    <d2p1:LocationID>1</d2p1:LocationID>
    <d2p1:SystemDefined>true</d2p1:SystemDefined>
    <d2p1:ThirdPartyAppCode>sample string 5</d2p1:ThirdPartyAppCode>
  </Result>
  <RowSource>sample string 3</RowSource>
</ActionResultOfCustomerSourceDTO>