Responding to Parameters

Responds to contexts and prompts.

Request

PUT <slURL>/queries/{queryId}/parameters

Where:
  • {queryId} is the query identifier retrieved from the list of queries

Request body: the answers to the parameters retrieved using the GET .../parameters call. See Answer XML Grammar to learn about the XML content structure and element details.

Response

Response type: application/xml or application/json

Additional parameters may have been found when the first parameters have been responded. In such case, the PUT .../parameters call returns a list of these new parameters, by using the same XML format used by GET .../parameters. Since these new parameters must also be responded, you must perform an additional PUT call by using as request body the answers to the new parameters, and the answers to the parameters that have triggered the new parameters.

When all parameters have been answered, the last PUT call returns a message stating the success of the request.

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