<h1>POST api/reportserver/v3/data/sql/model</h1>
<div>
<p>
Returns the fields data model for the specified data connection.
</p>

<h2>Request Information</h2>

<h3>URI Parameters</h3>
<p>None.</p>

<h3>Body Parameters</h3>

<p>Query with parameters model.</p>

<a href="/dotnet-docs/rest-api/v3/queryinfowithparameters">QueryInfoWithParameters</a>

<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
<tr>
<td class="parameter-name">QueryInfo</td>
<td class="parameter-documentation">
<p>No documentation available.</p>
</td>
<td class="parameter-type">
<a href="/dotnet-docs/rest-api/v3/queryinfo">QueryInfo</a>

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">Parameters</td>
<td class="parameter-documentation">
<p>No documentation available.</p>
</td>
<td class="parameter-type">
Collection of <a href="/dotnet-docs/rest-api/v3/queryinfoparameter">QueryInfoParameter</a>

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
</tbody>
</table>
<h3>Request body formats</h3>
<div>
<h4 class="sample-header">application/json, text/json, application/*+json</h4>
<div class="sample-content">

```json
{
  "QueryInfo": {
    "SelectCommandType": "Text",
    "SelectCommand": "SELECT * FROM Orders",
    "CommandTimeout": 414,
    "Name": "Northwind SQL Connection",
    "Provider": "System.Data.SqlClient",
    "ConnectionString": "Data Source=.;Initial Catalog=Northwind;Integrated Security=True"
  },
  "Parameters": [
    {
      "Name": "OrderDate",
      "Value": "2024-01-15",
      "DbType": "DateTime"
    },
    {
      "Name": "Region",
      "Value": "North America",
      "DbType": "String"
    }
  ]
}
```

</div>
</div>

<h2>Response Information</h2>

<h3>Resource Description</h3>

<p></p>

<p>None.</p>

</div>
