Create requirements for a policy by policy Id
post
/PASService/rest/services/v1/policies/{policyId}/requirements
Creates single or multiple requirements based on the specified policy Id.
Request
Path Parameters
-
policyId(required): string(guid)
Policy Id
Supported Media Types
- application/json
Root Schema : schema
Type:
string
Response
201 Response
This response code indicates that the creation of policies has been completed successfully.
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" \ -H "Content-Type: application/json" \ -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ -L "http://server:port/PASService/rest/services/v1/policies/C9343F06-0EDE-432E-86A3-36FF14E65379/requirements" \ -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:
{ "requirements": [ { "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": "F8CC7B38-95F9-4240-A528-B890AF87188C", "clientId": "7DA78982-C397-4BDA-AAE4-5A8915F5973A", "fullName": "John Me", "requirementId": "A4B41B90-78FB-40A7-8754-33609294C4F6", "requirementDefinitionId": "8E139408-0B64-477E-BE6B-FF9F880D1E26", "status": "00", "requirementType": "Fu", "previousStatus": "01", "createdDate": "2018-11-12T10:41:34Z", "lastmodifiedDate": "2019-03-09T13:44:02Z", "requirementDefinition": { "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": "05711222-7DB3-4EBD-A821-57A30A699B88", "planId": "C5EE0DA4-3003-42C1-9468-D91DA546B79F", "transactionId": "9C854E66-226C-45E5-B09F-58465D2F7473" } } ] }
Example Response Body
The following shows an example of the request body in JSON format:
{ "requirements": [ "A4B41B90-78FB-40A7-8754-33609294C4F6" ] }