Create policy
post
/PASService/rest/services/policies
Creates single or multiple policies
Request
Supported Media Types
- application/json
Root Schema : schema
Type:
string
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to create a single or multiple policies.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X POST -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:
"{ "policies": [ { "multiFields": { }, "policyName": "TEST_FPP_9191", "policyNumber": "TEST_FPP_9191", "planDate": "2015-08-04T00:00:00Z", "issueStateCode": "03", "systemCode": "01", "segments": [], "roles": [ ], "policyId": "E70E20B9-489B-48B7-AA45-33576642E699", "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" } ] }"
Example Response Body
The following shows an example of the request body in JSON format:
"{ "policies": [ "EA8B3C28-6950-407A-84DB-211AA99B0A2C" ] }"