Previous Next JavaScript must be enabled to correctly display this content

## Update a specific policy by policy Id

put

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

Updates a policy based on the specified policy Id.

### Request

Path Parameters

- policyId(required): string(guid)
  Policy Id

Supported Media Types

- application/json

Request Body - application/json ()
Root Schema : schema
Type: `string`
Back to Top

### Response

#### 204 Response

This operation updates a specific policy by policy Id successfully.
Back to Top

### Examples

This example describes how to update a policy based on the specified policy Id.

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

    {
      "policy": {
        "multiFields": {

        },
        "policyName": "TEST_FPP_9191",
        "policyNumber": "TEST_FPP_9191",
        "planDate": "2015-08-04T00:00:00Z",
        "issueStateCode": "03",
        "systemCode": "01",
        "segments": [],
        "roles": [
        ],
        "policyId": "F8CC7B38-95F9-4240-A528-B890AF87188C",
        "creationDate": "2015-08-04T00:00:00Z",
        "updatedDate": "2020-01-21T06:56:54Z",
        "companyId": "05711222-7DB3-4EBD-A821-57A30A699B88",
        "planId": "C5EE0DA4-3003-42C1-9468-D91DA546B79F",
        "status": "00"
      }
    }

Back to Top