Previous Next JavaScript must be enabled to correctly display this content

## Create requirements for a client by client Id

post

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

Creates single or multiple requirements based on the specified client Id

### Request

Path Parameters

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

Supported Media Types

- application/json

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

### Response

#### 201 Response

successful operation
Back to Top

### Examples

This example describes how to create a single or multiple client requirements based on the specified client 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/clients/8E139408-0B64-477E-BE6B-FF9F880D1E26/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": [
            {
                "message": "Reinsurance Transmittal",
                "comments": "Reinsurance Transmittal",
                "openDate": "2015-08-04T00:00:00Z",
                "closeDate": "2020-01-06T00:00:00Z",
                "dueDate": "2020-07-06T00:00:00Z",
                "clientId": "6927918F-F3E0-4172-95EE-386570D51252",
                "requirementDefinitionId": "8E139408-0B64-477E-BE6B-FF9F880D1E26",
                "status": "00",
                "requirementType": "E"
            },
            {
                "message": "APS Triggered by Physician",
                "comments": "APS Testing",
                "openDate": "2015-08-04T00:00:00Z",
                "closeDate": "2020-01-06T00:00:00Z",
                "dueDate": "2020-07-06T00:00:00Z",
                "clientId": "6927918F-F3E0-4172-95EE-386570D51252",
                "requirementDefinitionId": "FE8A3628-906D-4111-A8C6-61F9F5DB76D2",
                "status": "00",
                "requirementType": "E"
            }
        ]
    }

Example Response Body

The following shows an example of the response body in JSON format:

    {
        "requirements": [
            "EA8B3C28-6950-407A-84DB-211AA99B0A2C",
            "EA8B3C28-6910-407A-84AB-011AA99B0A2C"
        ]
    }

Back to Top