Previous Next JavaScript must be enabled to correctly display this content

## Process exposed computation

post

/PASService/rest/services/v1/exposedComputation

Process exposed computation.

### 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 response code indicates that the operation has been completed successfully.
Back to Top

### Examples

This example describes how to support creation of exposed computation SOAP web service in JSON and XML format.

Example cURL Command in JSON format

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

    curl -X POST \
         -H "Accept: application/json" \
         -H "Content-Type: application/json" \
         -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
         -L "http://server:port/PASService/rest/services/v1/exposedComputation" \
         -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body in JSON format

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

    {
      "exposedComputation": {
        "computationId": "SCN",
        "parameters": [
          {
            "NAME": "CompanyName",
            "value": "Prototype"
          }
        ]
      }
    }

Example Response Body in JSON format

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

    {
        "SCN": {
            "SubsidiaryCompanyNames": {
                "Item": [
                    {
                        "-INDEX": "1",
                        "#text": "Prototype Group Child Company"
                    },
                    {
                        "-INDEX": "2",
                        "#text": "Prototype Child Company"
                    }
                ]
            }
        }
    }

Example cURL Command in XML format

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

    curl -X POST \
         -H "Accept: application/xml" \
           -H "Content-Type: application/xml" \
         -u username:password \
         "http://server:port/PASService/rest/services/v1/exposedComputation"

Example Request Body in XML Format

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

    <ExposedComputation>
     <ComputationId>SCN</ComputationId>
     <CompanyGuid>7204C2FE-13B1-4A48-8CDA-DE8386C60EF9</CompanyGuid>
     <Parameters>
    <Parameter NAME="CompanyName">Prototype</Parameter>
    </Parameters>
    </ExposedComputation>

Example Response Body in XML Format

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

    <SCN>
        <SubsidiaryCompanyNames>
            <Item INDEX="1">Prototype Group Child Company</Item>
            <Item INDEX="2">Prototype Child Company</Item>
        </SubsidiaryCompanyNames>
    </SCN>

Back to Top