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