# tools.ozone.queue.updateQueue

> Update queue properties.

- Kind: procedure
- Authority: queue.ozone.tools
- Lexicon: 1
- Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.updateQueue)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.updateQueue/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.updateQueue/analytics)

## Procedure (`tools.ozone.queue.updateQueue`)

Type: procedure · POST

### Input (application/json)

- `description` (string): Optional description of the queue
- `enabled` (boolean): Enable or disable the queue
- `name` (string): New display name for the queue
- `queueId` (integer, required): ID of the queue to update
- `recommendedLabels` (array): Labels to recommend for this queue and use as fallback appeal routing mappings
  - `items` (string)
- `recommendedPolicies` (array): Policy keys to recommend when actioning reports in this queue
  - `items` (string)

### Output (application/json)

- `queue` (ref, required)
  - Reference: `tools.ozone.queue.defs#queueView`

### 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

## 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
}
```
