Previous Next JavaScript must be enabled to correctly display this content

## Update a specific requirement for a specific client by client Id and requirement Id

put

/PASService/rest/services/v1/clients/{clientId}/requirements/{requirementId}

Update a requirement based on the specified client Id and requirement Id

### Request

Path Parameters

- clientId(required): string(guid)
  Client Id
- requirementId(required): string(guid)
  Requirement Id

Supported Media Types

- application/json

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

### Response

#### 204 Response

successful operation
Back to Top

### Examples

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

Note

Below is the list of Fields that are not allowed for update using PATCH.

- requirementId
- requirementDefinitionId
- lastmodifiedDate
- lastModifiedBy
- previousStatus
- createdBy
- overdueGmt
- nextprocessGmt
- lockedGmt
- createdDate
- clientId

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/clients/{clientId}/requirements/{requirementId}" \
         -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": {
            "message": "Reinsurance Transmittal",
            "comments": "Reinsurance Transmittal",
            "clientId": "6927918F-F3E0-4172-95EE-386570D51252",
            "openDate": "2015-08-04T00:00:00Z",
            "closeDate": "2020-01-06T00:00:00Z",
            "dueDate": "2020-07-06T00:00:00Z",
            "requirementId": "A4B41B90-78FB-40A7-8754-33609294C4F6",
            "requirementDefinitionId": "8E139408-0B64-477E-BE6B-FF9F880D1E26",
            "status": "00",
            "requirementType": "E",
        }
    }

Back to Top