Create policy

post

/PASService/rest/services/v1/policies

Creates single or multiple policies.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: string
Back to Top

Response

201 Response

This response code indicates the creation of policy/policies successfully.
Back to Top

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" \
     -H "Content-Type: application/json" \   
     -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
     -L "http://server:port/PASService/rest/services/v1/policies" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

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": [
      ],
      
      "creationDate": "2015-08-04T00:00:00Z",
      "updatedDate": "2020-01-21T06:56:54Z",
       "companyId": "05711222-7DB3-4EBD-A821-57A30A699B88",
        "planId": "51673985-8606-4ABF-9EEE-85328BE03DA5",
      "status": "09"
    }
  ]
}

Example Response Body

The following shows an example of the response body in JSON format:

{
    "policies": [
        "BFE70B9A-5A7D-4260-9285-03080FCB7D14"
    ]
}
Back to Top