Create requirements for a policy
post
/PASService/rest/services/policies/{policyId}/requirements
Creates single or multiple requirements 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 create a single or multiple requirements 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/A4B41B90-78FB-40A7-8754-33609294C4F6"
Example Request Body
The following shows an example of the request body in JSON format:
"{
"requirements": [
{
"links": [
{
"href": "http://server:port/PASService/rest/services/policies/C9343F06-0EDE-432E-86A3-36FF14E65379/requirements/A4B41B90-78FB-40A7-8754-33609294C4F6",
"rel": "self",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://server:port/PASService/rest/services/codes?codeName=RequirementStatus&codeValue=00",
"rel": "codes/status",
"mediaType": "application/json",
"method": "GET"
}
],
"multiFields": {},
"message": "Reinsurance Transmittal Req",
"comments": "Reinsurance Transmittal Req",
"openDate": "2015-08-04T00:00:00Z",
"closeDate": "2020-01-06T00:00:00Z",
"dueDate": "2020-01-06T00:00:00Z",
"expirationDate": "2050-01-06T00:00:00Z",
"overdueGmt": "2040-01-06T00:00:00Z",
"nextProcessGmt": "2019-03-09T13:49:02Z",
"lockedGmt": "2030-01-06T00:00:00Z",
"createdBy": "qatester3",
"lastModifiedBy": "SYSTEM",
"policyId": "C9343F06-0EDE-432E-86A3-36FF14E65379",
"clientId": "7DA78982-C397-4BDA-AAE4-5A8915F5973A",
"fullName": "John Me",
"requirementId": "A4B41B90-78FB-40A7-8754-33609294C4F6",
"requirementDefinitionId": "8E139408-0B64-477E-BE6B-FF9F880D1E26",
"status": "00",
"requirementType": "Full",
"previousStatus": "Pending",
"createdDate": "2018-11-12T10:41:34Z",
"lastmodifiedDate": "2019-03-09T13:44:02Z",
"requirementDefinition": {
"links": [
{
"href": "http://server:port/PASService/rest/services/codes?codeName=RequirementSeverity&codeValue=02",
"rel": "codes/severity",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://server:port/PASService/rest/services/codes?codeName=RequirementLevel&codeValue=02",
"rel": "codes/level",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://server:port/PASService/rest/services/codes?codeName=RequirementCategory&codeValue=04",
"rel": "codes/category",
"mediaType": "application/json",
"method": "GET"
}
],
"fields": {},
"multiFields": {},
"requirementName": "Reinsurance Transmittal",
"description": "Reinsurance Transmittal ",
"stateCode": "CA",
"message": "Reinsurance Transmittal",
"manualResults": 1,
"resultsObsoleteDays": 0,
"requirementDefinitionId": "8E139408-0B64-477E-BE6B-FF9F880D1E26",
"level": "02",
"severity": "02",
"category": "04",
"companyId": "80798FC2-FEB9-4998-A575-513FF89698B1",
"planId": "61A8D669-D8E0-4E65-80A5-55EF59557C68",
"transactionId": "9C854E66-226C-45E5-B09F-58465D2F7473"
},
"RequirementType": "Full",
"ApplicationNumber": "A4B41B90"
}
]
}"
Example Response Body
The following shows an example of the request body in JSON format:
"{
"requirements": [
"EA8B3C28-6950-407A-84DB-211AA99B0A2C"
]
}"