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
-
rateGroupId(required): string(guid)
RateGroup Id
-
rateId(required): string(guid)
Rate Id
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
204 Response
successful operation
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
}
}