PUT v1/Locations/{locationID}/Contacts/Languages/{languageID}

Update a language ID Record

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationID

Id of the location

string

Required

languageID

Id of the language to be updated

string

Required

Body Parameters

Language

LanguageDTO
NameDescriptionTypeAdditional information
LanguageID

Id of the language

integer

None.

LanguageCode

Language code

string

None.

Language1

Language 1

string

None.

LocationID

Id of the location

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LanguageID": 1,
  "LanguageCode": "sample string 2",
  "Language1": "sample string 3",
  "LocationID": 1
}

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

application/xml, text/xml

Sample:
<LanguageDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Locations">
  <Language1>sample string 3</Language1>
  <LanguageCode>sample string 2</LanguageCode>
  <LanguageID>1</LanguageID>
  <LocationID>1</LocationID>
</LanguageDTO>

Response Information

Resource Description

Updated language

ActionResultDTOOfLanguageDTO
NameDescriptionTypeAdditional information
Result

LanguageDTO

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": {
    "LanguageID": 1,
    "LanguageCode": "sample string 2",
    "Language1": "sample string 3",
    "LocationID": 1
  },
  "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:
<ActionResultOfLanguageDTO 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:Language1>sample string 3</d2p1:Language1>
    <d2p1:LanguageCode>sample string 2</d2p1:LanguageCode>
    <d2p1:LanguageID>1</d2p1:LanguageID>
    <d2p1:LocationID>1</d2p1:LocationID>
  </Result>
  <RowSource>sample string 3</RowSource>
</ActionResultOfLanguageDTO>