title: MarkLogic - Pass variable value through REST API to OPTIONS file
body: <p>I am using options file (loaded into modules DB using PUT /v1/config/query). Then I do a GET /v1/search with <code>?options=module-name&amp;q=FullName:"John Smith"</code>. I am trying to pass FullName that is supplied as a parameter through REST API, to restrict the output content.</p>
  
  <p>Below code in options file works fine,</p>
  
  <pre><code>&lt;extract-document-data selected="include"&gt;
      &lt;extract-path&gt;/envelope/instance/Contact/*[FullName="John Smith"] 
      &lt;/extract-path&gt;
  &lt;/extract-document-data&gt;
  </code></pre>
  
  <p>How can I pass the value of FullName as a parameter with the value coming from REST API prameters instead of hard-coding? Something like,</p>
  
  <pre><code>&lt;extract-document-data selected="include"&gt;
      &lt;extract-path&gt;/envelope/instance/Contact/*[FullName=$FullName] 
      &lt;/extract-path&gt;
  &lt;/extract-document-data&gt;
  </code></pre>
  
  <p>I tried above syntax but getting error while deployment(PUT /v1/config/query).</p>
  
  <blockquote>
    <p>{"errorResponse": {
       "statusCode": 400,
       "status": "Bad Request",
       "messageCode": "RESTAPI-INVALIDCONTENT",
       "message": "RESTAPI-INVALIDCONTENT: (err:FOER0000) Invalid content: invalid paths to extract document data: /envelope/instance/Contact/*[FullName=$FullName]"
    }}</p>
  </blockquote>