Create rateGroupRelationships for a rateGroup by rateGroup Id

post

/PASService/rest/services/v1/rateGroups/{rateGroupId}/rateGroupRelationships

Creates single or multiple rateGroupRelationships based on the specified rateGroup Id

Request

Path Parameters
Supported Media Types
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 rateGroupRelationships based on the specified rateGroup 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/rateGroups/{rateGroupId}/rateGroupRelationships" \
     -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:

{
"rateGroupRelationships": [
        {
        "rateGroupId":"24826C47-38D4-4AF6-81DE-A957F273DE08",
          "entityTypeCode": "CUSTOMER",
          "entityId": "00AD39A9-E79D-4F4B-97FB-27EAC0BE87A8",
          "purposeCode": "EMPPREMIUM",
          "statusCode": "ACTIVE",
          "companyId": "7204C2FE-13B1-4A48-8CDA-DE8386C60EF9"
        }
      ]
}
Back to Top