Process policy
/PASService/rest/services/v1/processPolicy
Request
-
Content-Type(required):
Describes the content type of the current request/response. The content-type can be application/JSON or application/XML.
- application/xml
- application/json
string
string
Response
200 Response
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>