Create segments for a policy
post
/PASService/rest/services/policies/{id}/segments
Creates single or multiple segments based on the specified policy Id
Request
Supported Media Types
- application/json
Path Parameters
-
id: 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:
string
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to create a single or multiple segments based on the specified policy Id.
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/C9343F06-0EDE-432E-86A3-36FF14E65379/requirements"
Example Request Body
The following shows an example of the request body in JSON format:
"{ "segments": [ { "segmentId": "839A37CD-E5D2-4F4E-A8EC-A274519A3EBD", "parentSegmentId": "D436C2E7-EA98-4878-9703-A0E6F58CE0B2", "policyId": "B580F658-F2AC-4A73-8B0B-3BBF8BB2BC4C", "segmentNameId": "4B9BEB90-8B17-4FD9-B53A-3B315647A275", "status": "24", "planSegmentNameId": "B54EF2FB-92D6-4B5C-8017-AB4B8FCF9D5B", "segmentName": { "multiFields": { }, "segmentName": "Deferred Annuity", "activeFromDate": "2020-01-06T00:00:00Z", "activeToDate": "2040-01-06T00:00:00Z", "planSegmentName": "Plan Deferred Annuity", "segmentNameId": "4B9BEB90-8B17-4FD9-B53A-3B315647A275", "planId": "51673985-8606-4ABF-9EEE-85328BE03DA5", "productId": "C9DDE204-B5B9-4BBA-B7B3-125C6FF81824", "type": "05", "status": "01" } } ] }"
Example Response Body
The following shows an example of the response body in JSON format:
"{ "segments": [ "EA8B3C28-6950-407A-84DB-211AA99B0A2C" ] } "