Update a specific withholding partially by withholding Id
patch
/PASService/rest/services/v1/policies/{policyId}/withholdings/{withholdingId}
Updates a withholding partially for the fields given in request body for a specified policy Id and withholding Id
Request
Path Parameters
-
policyId(required): string(guid)
Policy Id
-
withholdingId(required): string(guid)
Withholding Id
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
204 Response
successful operation
Examples
This example describes how to update a withholding partially for the fields given in request body for a specified policy Id and withholding Id of the policy.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-L "http://server:port/PASService/rest/services/policies/5F53C523-F201-4CEF-A376-DBA24BC7DC1A/withholdings/E721D943-8DA7-4FC1-86B1-9D219A8896B9" \
-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:
{
"withholdings":
{
"taxIDSource": {
"textValue": "01",
"optionText": "Application"
},
"federalPercent": "10",
"federalAmount":{
"Value": "1000",
"currency":"USD"
},
"stateAmount": {
"Value": "1000",
"currency":"USD"
},
"statePercent": "10"
}
}
}