Example - Responding to a Context

A GET .../parameters call returns a list of values for a specific parameter of type context:

<parameters>
    <parameter dpId="DP0" type="context" optional="false">
        <id>0</id>
        <technicalName>c _Sub_2</technicalName>
        <name>Select a context</name>
        <answer type="Text" constrained="true">
            <info cardinality="Single">
                <lov partial="false">
                    <values>
                        <value id="CTX_2">Reservations</value>
                        <value id="CTX_1">Sales</value>
                    </values>
                </lov>
            </info>
        </answer>
    </parameter>
</parameters>

In the PUT call, the request body contains an answer to the context. The following request body does not show the <info> element, which is not mandatory:

<parameters>
    <parameter dpId="DP0" optional="false" type="context">
        <id>0</id>
        <technicalName>c _Sub_2</technicalName>
        <name>Select a context</name>
        <answer constrained="true" type="Text">
            <values>
                <value id="CTX_2">Reservations</value>
            </values>
        </answer>
    </parameter>
</parameters>

The PUT call returns a successful message.

<success>
    <message>The resource of type 'Query' with identifier 'XX' has not been modified.</message>
    <id>XX</id>
</success>