Partially update a rate for a specific rateGroup by rateGroup Id and rate Id

patch

/PASService/rest/services/v1/rateGroups/{rateGroupId}/rates/{rateId}

Partially updates a rate based on the specified rateGroup Id and rate Id

Request

Path Parameters
Supported Media Types
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 partialy update a rate based on the specified rateGroup Id and rate Id.

Note

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

  • rateGroupId
  • rateId
  • rateDescription

Example cURL Command

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

curl \
    -X GET \
    -H "Content-Type: application/json" \
    -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
    -L "http://server:port/PASService/rest/services/v1/rateGroups/{rateGroupId}/rates/{rateId}"

Example Request Body

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

{
  "rate":
    {
      "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
    }
}
Back to Top