Update a specific policy by policy Id

patch

/PASService/rest/services/v1/policies/{policyId}

Updates a policy based on the specified policy 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 policy by policy Id by providing partial payload.

Note

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

  • policyId
  • policyNumber
  • creationDate
  • companyId
  • planId
  • updatedDate
  • systemCode

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/policies/27BB1FD7-605F-4468-B2FB-2323031FA560" \

Example Request Body

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

{
  "policy": {
    "policyName": "TEST_FPP_9191",
    "issueStateCode": "03"
  }
}
Back to Top