Example - Refreshing a Document with a Context

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 optional="false" type="context">
        <id>0</id>
        <name>Select a context</name>
        <answer constrained="true" type="Text">
            <values>
                <value id="2">Reservations</value>
            <values/>
        </answer>
    </parameter>
</parameters>

The PUT call returns a successful message.

<success>
    <message>The resource of type 'document' with identifier 'xxx' has been successfully
        updated.</message>
    <id>xxx</id>
</success>