Update a specific requirement for a specific policy by policy Id and requirement Id

put

/PASService/rest/services/v1/policies/{policyId}/requirements/{requirementId}

Updates a requirement based on the specified policy Id and requirement Id.

Request

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

Response

204 Response

This operation updates a specific requirement for a specific policy by policy Id and requirement Id successfully.
Back to Top

Examples

This example describes how to update a requirement based on the specified policy Id and requirement Id.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -X PUT \ 
     -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:

{
  "requirement": {
    "multiFields": {
    },
    "message": "Reinsurance Transmittal",
    "comments": "Reinsurance Transmittal",
    "openDate": "2015-08-04T00:00:00Z",
    "closeDate": "2020-01-06T00:00:00Z",
    "dueDate": "2020-07-06T00:00:00Z",
    "expirationDate": "2030-01-06T00:00:00Z",
    "overdueGmt": "2020-06-06T00:00:00Z",
    "nextProcessGmt": "2019-03-09T13:49:02Z",
    "lockedGmt": "2020-06-06T00:00:00Z",
    "createdBy": "qatester3",
    "lastModifiedBy": "SYSTEM",
    "policyId": "C9343F06-0EDE-432E-86A3-36FF14E65379",
    "clientId": "6927918F-F3E0-4172-95EE-386570D51252",
    "fullName": "Reinsurance ",
    "requirementId": "A4B41B90-78FB-40A7-8754-33609294C4F6",
    "requirementDefinitionId": "8E139408-0B64-477E-BE6B-FF9F880D1E26",
    "status": "00",
    "requirementType": "E",
    "previousStatus": "Pending",
    "createdDate": "2018-11-12T10:41:34Z",
    "lastmodifiedDate": "2019-03-09T13:44:02Z",
    "requirementDefinition": {
     "fields":null,
 "multiFields":null,
}
      "requirementName": "Reinsurance Transmittal",
      "description": "Reinsurance Transmittal ",
      "stateCode": "CA",
      "message": "Reinsurance ",
      "manualResults": 1,
      "resultsObsoleteDays": 0,
      "requirementDefinitionId": "8E139408-0B64-477E-BE6B-FF9F880D1E26",
      "level": "02",
      "severity": "02",
      "category": "04",
      "companyId": "80798FC2-FEB9-4998-A575-513FF89698B1",
      "planId": "6927918F-F3E0-4172-95EE-386570D51252",
      "transactionId": "F2BA5B43-9349-42A7-A391-04566F7972ED"
    }
  }
}
Back to Top