# tools.ozone.queue.unassignModerator

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

## Definitions

### `tools.ozone.queue.unassignModerator`

**Type**: `procedure`

Remove a user's assignment from a queue.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | DID to be unassigned. |
| `queueId` | `integer` | Yes | The ID of the queue to unassign the user from. |

#### Errors

- **InvalidAssignment**: No active assignment exists for the given queue and user.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Remove a user's assignment from a queue.",
      "errors": [
        {
          "description": "No active assignment exists for the given queue and user.",
          "name": "InvalidAssignment"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "description": "DID to be unassigned.",
              "format": "did",
              "type": "string"
            },
            "queueId": {
              "description": "The ID of the queue to unassign the user from.",
              "type": "integer"
            }
          },
          "required": [
            "queueId",
            "did"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.queue.unassignModerator",
  "lexicon": 1
}
```
