# tools.ozone.queue.routeReports

> Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.routeReports)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.routeReports/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.routeReports/examples)

## Definitions

### `tools.ozone.queue.routeReports`

**Type**: `procedure`

Route reports within an ID range to matching queues based.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `endReportId` | `integer` | Yes | End of report ID range (inclusive). Difference between start and end must be less than 5,000. |
| `startReportId` | `integer` | Yes | Start of report ID range (inclusive). |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `assigned` | `integer` | Yes | The number of reports assigned to a queue. |
| `unmatched` | `integer` | Yes | The number of reports with no matching queue. |

#### Errors

- **OutOfRange**: The request is invalid, such as missing required fields or invalid field values.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Route reports within an ID range to matching queues based.",
      "errors": [
        {
          "description": "The request is invalid, such as missing required fields or invalid field values.",
          "name": "OutOfRange"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "endReportId": {
              "description": "End of report ID range (inclusive). Difference between start and end must be less than 5,000.",
              "type": "integer"
            },
            "startReportId": {
              "description": "Start of report ID range (inclusive).",
              "type": "integer"
            }
          },
          "required": [
            "startReportId",
            "endReportId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "assigned": {
              "description": "The number of reports assigned to a queue.",
              "type": "integer"
            },
            "unmatched": {
              "description": "The number of reports with no matching queue.",
              "type": "integer"
            }
          },
          "required": [
            "assigned",
            "unmatched"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.queue.routeReports",
  "lexicon": 1
}
```
