Previous Next JavaScript must be enabled to correctly display this content

## Create rateGroup

post

/PASService/rest/services/v1/rateGroups

Creates single or multiple rateGroups

### Request

There are no request parameters for this operation.

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 rateGroups.

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/rateGroups" \
         -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:

    {
      "rateGroups": [
        {
          "rateDescription": "TestrRate200",
          "integerCriteria": "Duration",
          "effectiveDate": "1990-01-01T00:00:00Z",
          "activeFromDate": "1990-01-01T00:00:00Z",
          "activeToDate": null,
          "expirationDate": null,
          "tableFormat": "Select",
          "secondaryIndex": "IssueAge",
          "criteria1": "Gender",
          "criteria2": "Tobacco",
          "criteria3": "Risk",
          "criteria4": "Band",
          "criteria5": "IssueAge",
          "criteria6": null,
          "criteria7": null,
          "criteria8": null,
          "criteria9": null,
          "criteria10": null,
      "rates": [
        {
          "rateDescription": "TestrRate200",
          "dateCriteria": null,
          "integerCriteria": 14,
          "rate": 0.72,
          "criteria1": "01",
          "criteria2": "02",
          "criteria3": null,
          "criteria4": null,
          "criteria5": null,
          "criteria6": null,
          "criteria7": null,
          "criteria8": null,
          "criteria9": null,
          "criteria10": null
        }
      ],
          "rateGroupRelationships": [
            {
              "entityTypeCode": "CUSTOMER",
              "entityId": "00AD39A9-E79D-4F4B-97FB-27EAC0BE87A8",
              "purposeCode": "EMPPREMIUM",
              "statusCode": "ACTIVE",
              "companyId": "7204C2FE-13B1-4A48-8CDA-DE8386C60EF9"
            }
          ]
        }
      ]
    }

Back to Top