# tools.ozone.queue.assignModerator

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

## Definitions

### `tools.ozone.queue.assignModerator`

**Type**: `procedure`

Assign a user to a queue.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` | Yes | DID to be assigned. |
| `queueId` | `integer` | Yes | The ID of the queue to assign the user to. |

#### Output

**Encoding**: `application/json`

#### Errors

- **InvalidAssignment**: The specified queue does not exist or is not enabled.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Assign a user to a queue.",
      "errors": [
        {
          "description": "The specified queue does not exist or is not enabled.",
          "name": "InvalidAssignment"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "description": "DID to be assigned.",
              "type": "string"
            },
            "queueId": {
              "description": "The ID of the queue to assign the user to.",
              "type": "integer"
            }
          },
          "required": [
            "queueId",
            "did"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "tools.ozone.queue.defs#assignmentView",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.queue.assignModerator",
  "lexicon": 1
}
```
