PUT v1/Locations/{locationID}/Policies/PolicySources/{policySourceID}
Update a policy source
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| locationID |
Id of the location |
string |
Required |
| policySourceID |
Id of the policy source to be updated |
string |
Required |
Body Parameters
Endorsement reason
PolicySourceDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| PolicySourceID | integer |
None. |
|
| PolicySourceName | string |
None. |
|
| SystemDefined | boolean |
None. |
|
| Visible | boolean |
None. |
|
| LocationID | integer |
None. |
|
| AppCreated | string |
None. |
|
| ThirdPartyAppCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PolicySourceID": 1,
"PolicySourceName": "sample string 2",
"SystemDefined": true,
"Visible": true,
"LocationID": 1,
"AppCreated": "sample string 4",
"ThirdPartyAppCode": "sample string 5"
}
application/xml, text/xml
Sample:
<PolicySourceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies"> <AppCreated>sample string 4</AppCreated> <LocationID>1</LocationID> <PolicySourceID>1</PolicySourceID> <PolicySourceName>sample string 2</PolicySourceName> <SystemDefined>true</SystemDefined> <ThirdPartyAppCode>sample string 5</ThirdPartyAppCode> <Visible>true</Visible> </PolicySourceDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Updated policy source
ActionResultDTOOfPolicySourceDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | PolicySourceDTO |
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": {
"PolicySourceID": 1,
"PolicySourceName": "sample string 2",
"SystemDefined": true,
"Visible": 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:
<ActionResultOfPolicySourceDTO 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.Policies">
<d2p1:AppCreated>sample string 4</d2p1:AppCreated>
<d2p1:LocationID>1</d2p1:LocationID>
<d2p1:PolicySourceID>1</d2p1:PolicySourceID>
<d2p1:PolicySourceName>sample string 2</d2p1:PolicySourceName>
<d2p1:SystemDefined>true</d2p1:SystemDefined>
<d2p1:ThirdPartyAppCode>sample string 5</d2p1:ThirdPartyAppCode>
<d2p1:Visible>true</d2p1:Visible>
</Result>
<RowSource>sample string 3</RowSource>
</ActionResultOfPolicySourceDTO>