Update policy
put
/PASService/rest/services/policies/{policyId}
Updates a policy based on the specified policy Id
Request
Supported Media Types
- application/json
Path Parameters
-
policyId: string
Pattern:
\{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?Policy Id
Root Schema : schema
Type:
stringResponse
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to update a policy based on the specified policy Id.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X PUT -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/policies/27BB1FD7-605F-4468-B2FB-2323031FA560"
Example Request Body
The following shows an example of the request body in JSON format:
"{
"policy": {
"multiFields": {
},
"policyName": "TEST_FPP_9191",
"policyNumber": "TEST_FPP_9191",
"planDate": "2015-08-04T00:00:00Z",
"issueStateCode": "03",
"systemCode": "01",
"segments": [],
"roles": [
],
"policyId": "27BB1FD7-605F-4468-B2FB-2323031FA560",
"creationDate": "2015-08-04T00:00:00Z",
"updatedDate": "2020-01-21T06:56:54Z",
"companyId": "05711222-7DB3-4EBD-A821-57A30A699B88",
"planId": "C5EE0DA4-3003-42C1-9468-D91DA546B79F",
"status": "08"
}
}"