# tools.ozone.queue.updateQueue

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

## Definitions

### `tools.ozone.queue.updateQueue`

**Type**: `procedure`

Update queue properties.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `description` | `string` | No | Optional description of the queue |
| `enabled` | `boolean` | No | Enable or disable the queue |
| `name` | `string` | No | New display name for the queue |
| `queueId` | `integer` | Yes | ID of the queue to update |
| `recommendedLabels` | `array` | No | Labels to recommend for this queue and use as fallback appeal routing mappings |
| `recommendedPolicies` | `array` | No | Policy keys to recommend when actioning reports in this queue |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `queue` | `ref` → `tools.ozone.queue.defs#queueView` | Yes |  |

#### Errors

- **InvalidRecommendedPolicies**: One or more recommended policy keys do not exist in the configured policy list
- **ConflictingQueue**: The queue configuration conflicts with an existing queue

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Update queue properties.",
      "errors": [
        {
          "description": "One or more recommended policy keys do not exist in the configured policy list",
          "name": "InvalidRecommendedPolicies"
        },
        {
          "description": "The queue configuration conflicts with an existing queue",
          "name": "ConflictingQueue"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "description": {
              "description": "Optional description of the queue",
              "type": "string"
            },
            "enabled": {
              "description": "Enable or disable the queue",
              "type": "boolean"
            },
            "name": {
              "description": "New display name for the queue",
              "type": "string"
            },
            "queueId": {
              "description": "ID of the queue to update",
              "type": "integer"
            },
            "recommendedLabels": {
              "description": "Labels to recommend for this queue and use as fallback appeal routing mappings",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "recommendedPolicies": {
              "description": "Policy keys to recommend when actioning reports in this queue",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "queueId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "queue": {
              "ref": "tools.ozone.queue.defs#queueView",
              "type": "ref"
            }
          },
          "required": [
            "queue"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.queue.updateQueue",
  "lexicon": 1
}
```
