<h1>POST api/reportserver/v2/documents</h1>
<div>
<p>
Generates a new report document on the server.
</p>

<h2>Request Information</h2>

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

<h3>Body Parameters</h3>

<p>The data model needed to create the document.</p>

<a href="/implementer-guide/apis/rest-api/v2/createdocumentdata">CreateDocumentData</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">ReportId</td>
<td class="parameter-documentation">
<p>
Specifies the ID of the report which should be rendered.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">Format</td>
<td class="parameter-documentation">
<p>
Specifies the document format in which the report should be rendered.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">DeviceInfo</td>
<td class="parameter-documentation">
<p>
Specifies the device information settings.
</p>
</td>
<td class="parameter-type">
Dictionary of string [key] and Object [value]

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">ParameterValues</td>
<td class="parameter-documentation">
<p>
Specifies the actual values of the report parameters that will be used during the report rendering.
</p>
</td>
<td class="parameter-type">
Dictionary of string [key] and Object [value]

</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</h4>
<div class="sample-content">

```json
{
  "ReportId": "0d159b6da5a",
  "Format": "Pdf",
  "DeviceInfo": {
    "Device Info 1388": 12345,
    "Device Info 1390": "2024-01-15"
  },
  "ParameterValues": {
    "Region": "North America",
    "CustomerId": 12345
  }
}
```

</div>
</div>

<h2>Response Information</h2>

<h3>Resource Description</h3>

<p>The ID of the generated report document.</p>

string

<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
</tbody>
</table>

<h3>Response Formats</h3>
<div>
<h4 class="sample-header">application/json, text/json</h4>
<div class="sample-content">

```
"Create 1394"
```

</div>
</div>
</div>
