# Create a Report

`POST /lokta-lms/api/v1/reports`

## Request body (application/json)
- `description` (string)
- `reportCategory` (string)
- `reportName` (string)
- `reportParameters` (array of ReportParameterData)
- `reportSql` (string)
- `reportSubType` (string)
- `reportType` (string)

## Responses
- `200`: OK

## Response fields
- `resourceId` (integer)

## Example request (cURL)
```bash
curl -X POST \
  'http://localhost:8080/lokta-lms/api/v1/reports' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default' \
  -H 'Content-Type: application/json' \
  -d '{
  "description": "Just An Example",
  "reportCategory": "Loan",
  "reportName": "Completely New Report",
  "reportParameters": [
    {}
  ],
  "reportSql": "select '\''very good sql'\'' as AComment",
  "reportSubType": "string",
  "reportType": "Table"
}'
```

## Example response
```json
{
  "resourceId": 132
}
```

Interactive: https://developer.lokta.ai/reference.html#operation/createReport
