# tools.ozone.report.reassignQueue

> 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.report.reassignQueue)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.reassignQueue/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.reassignQueue/examples)

## Definitions

### `tools.ozone.report.reassignQueue`

**Type**: `procedure`

Manually reassign a report to a different queue (or unassign it). Records a queueActivity entry on the report.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `comment` | `string` | No | Optional moderator-only note recorded on the resulting queueActivity as internalNote. |
| `queueId` | `integer` | Yes | Target queue ID. Use -1 to unassign from any queue. |
| `reportId` | `integer` | Yes | ID of the report to reassign |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `report` | `ref` → `tools.ozone.report.defs#reportView` | Yes |  |

#### Errors

- **ReportNotFound**: No report exists with the given reportId
- **ReportClosed**: The report is closed and cannot be reassigned
- **AlreadyInTargetQueue**: The report is already assigned to the target queue
- **QueueNotFound**: No active queue exists with the given queueId
- **QueueDisabled**: The target queue is disabled and cannot receive new assignments

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Manually reassign a report to a different queue (or unassign it). Records a queueActivity entry on the report.",
      "errors": [
        {
          "description": "No report exists with the given reportId",
          "name": "ReportNotFound"
        },
        {
          "description": "The report is closed and cannot be reassigned",
          "name": "ReportClosed"
        },
        {
          "description": "The report is already assigned to the target queue",
          "name": "AlreadyInTargetQueue"
        },
        {
          "description": "No active queue exists with the given queueId",
          "name": "QueueNotFound"
        },
        {
          "description": "The target queue is disabled and cannot receive new assignments",
          "name": "QueueDisabled"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "comment": {
              "description": "Optional moderator-only note recorded on the resulting queueActivity as internalNote.",
              "type": "string"
            },
            "queueId": {
              "description": "Target queue ID. Use -1 to unassign from any queue.",
              "type": "integer"
            },
            "reportId": {
              "description": "ID of the report to reassign",
              "type": "integer"
            }
          },
          "required": [
            "reportId",
            "queueId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "report": {
              "ref": "tools.ozone.report.defs#reportView",
              "type": "ref"
            }
          },
          "required": [
            "report"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.report.reassignQueue",
  "lexicon": 1
}
```
