PUT v1/Locations/{locationID}/Contacts/Industries/{industryID}
Update an Industry and its occupations
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
locationID |
Id of the location |
string |
Required |
industryID |
Id of the industry to be updated |
string |
Required |
Body Parameters
Industry and it's related occupations
IndustryAndOccupationsDTOName | Description | Type | Additional information |
---|---|---|---|
IndustryID | integer |
None. |
|
IndustryName | string |
None. |
|
SystemDefined | boolean |
None. |
|
LocationID | integer |
None. |
|
Occupations | Collection of OccupationWithXRefDTO |
None. |
Request Formats
application/json, text/json
Sample:
{ "IndustryID": 1, "IndustryName": "sample string 2", "SystemDefined": true, "LocationID": 4, "Occupations": [ { "XREFIndustryOccupationID": 1, "OccupationID": 2, "Occupation": "sample string 3", "SystemDefined": true, "LocationID": 1 }, { "XREFIndustryOccupationID": 1, "OccupationID": 2, "Occupation": "sample string 3", "SystemDefined": true, "LocationID": 1 } ] }
application/xml, text/xml
Sample:
<IndustryAndOccupationsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Locations"> <IndustryID>1</IndustryID> <IndustryName>sample string 2</IndustryName> <LocationID>4</LocationID> <Occupations> <OccupationWithXRefDTO> <LocationID>1</LocationID> <Occupation>sample string 3</Occupation> <OccupationID>2</OccupationID> <SystemDefined>true</SystemDefined> <XREFIndustryOccupationID>1</XREFIndustryOccupationID> </OccupationWithXRefDTO> <OccupationWithXRefDTO> <LocationID>1</LocationID> <Occupation>sample string 3</Occupation> <OccupationID>2</OccupationID> <SystemDefined>true</SystemDefined> <XREFIndustryOccupationID>1</XREFIndustryOccupationID> </OccupationWithXRefDTO> </Occupations> <SystemDefined>true</SystemDefined> </IndustryAndOccupationsDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Updated industry
ActionResultDTOOfIndustryAndOccupationsDTOName | Description | Type | Additional information |
---|---|---|---|
Result | IndustryAndOccupationsDTO |
None. |
|
CreatedBy | string |
None. |
|
EntityID | integer |
None. |
|
RowSource | string |
None. |
|
PolicyID | integer |
None. |
|
IsSuccess | boolean |
None. |
|
ErrorCode | string |
None. |
|
ErrorMessage | string |
None. |
|
InfoMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Result": { "IndustryID": 1, "IndustryName": "sample string 2", "SystemDefined": true, "LocationID": 4, "Occupations": [ { "XREFIndustryOccupationID": 1, "OccupationID": 2, "Occupation": "sample string 3", "SystemDefined": true, "LocationID": 1 }, { "XREFIndustryOccupationID": 1, "OccupationID": 2, "Occupation": "sample string 3", "SystemDefined": true, "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:
<ActionResultOfIndustryAndOccupationsDTO 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:IndustryID>1</d2p1:IndustryID> <d2p1:IndustryName>sample string 2</d2p1:IndustryName> <d2p1:LocationID>4</d2p1:LocationID> <d2p1:Occupations> <d2p1:OccupationWithXRefDTO> <d2p1:LocationID>1</d2p1:LocationID> <d2p1:Occupation>sample string 3</d2p1:Occupation> <d2p1:OccupationID>2</d2p1:OccupationID> <d2p1:SystemDefined>true</d2p1:SystemDefined> <d2p1:XREFIndustryOccupationID>1</d2p1:XREFIndustryOccupationID> </d2p1:OccupationWithXRefDTO> <d2p1:OccupationWithXRefDTO> <d2p1:LocationID>1</d2p1:LocationID> <d2p1:Occupation>sample string 3</d2p1:Occupation> <d2p1:OccupationID>2</d2p1:OccupationID> <d2p1:SystemDefined>true</d2p1:SystemDefined> <d2p1:XREFIndustryOccupationID>1</d2p1:XREFIndustryOccupationID> </d2p1:OccupationWithXRefDTO> </d2p1:Occupations> <d2p1:SystemDefined>true</d2p1:SystemDefined> </Result> <RowSource>sample string 3</RowSource> </ActionResultOfIndustryAndOccupationsDTO>