Previous Next JavaScript must be enabled to correctly display this content

## Process policy

put

/PASService/rest/services/v1/processPolicy

Process policy

### Request

Header Parameters

- Content-Type: string
  Describes the content type of the current request/response. The content-type can be application/JSON or application/XML.

Supported Media Types

- application/xml
- application/json

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

### Response

#### 200 Response

This operation updates the result of the process and the policy number successfully.
Back to Top

### Examples

This example describes how to update the capabilities of process policy SOAP web service in both JSON and XML format.

Example cURL Command in JSON

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/processPolicy" \
         -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body in JSON

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

    {
      "processPolicy": {
        "companyGuid": "80798FC2-FEB9-4998-A575-513FF89698B1",
        "parameters": [
          {
            "NAME": "PolicyNumber",
            "value": "12345"
          }
        ]
      }
    }

Example Response Body in JSON format

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

    {
        "Result": {
            "Process": "Success",
            "PolicyNumber": "12345"
        },
        "#omit-xml-declaration": "yes"
    }

Example cURL Command in XML

Use the following cURL command to submit a request on the REST resource:

    curl -X PUT \
         -H "Accept: application/xml" \
           -H "Content-Type: application/xml" \
         -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
         "http://server:port/PASService/rest/services/v1/processPolicy"

Example Request Body in XML format

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

    <ProcessPolicy>
    <CompanyGuid>7204C2FE-13B1-4A48-8CDA-DE8386C60EF9</CompanyGuid>
    <Parameters>
    <Parameter NAME="PolicyNumber">VDA15048405</Parameter>
    </Parameters>
     </ProcessPolicy>

Example Response Body in XML format

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

    <Result>
        <Process>Success</Process>
        <PolicyNumber>VDA15048405</PolicyNumber>
    </Result>

Back to Top