---
title: "Change the queue config – Superbot API"
canonical_url: "https://superbot.gg/developers/builds#updateXBuildQueue"
last_updated: "2026-10-01"
summary: "`max_concurrent`, `max_queue` and `paused` are persisted in `<dataDir>/x-builds/config.json`; `paused: true` is the operator kill switch the poller flips on an account-wide X refusal."
---

> Markdown twin of https://superbot.gg/developers/builds#updateXBuildQueue (the HTML page is canonical).
> The site index for agents is /llms.txt; every content page has a twin at its path plus `.md`.

# Change the queue config

`PATCH /v1/x-builds/queue`

`max_concurrent`, `max_queue` and `paused` are persisted in `<dataDir>/x-builds/config.json`; `paused: true` is the operator kill switch the poller flips on an account-wide X refusal.

- Operation id: `updateXBuildQueue`
- Group: [Builds](https://superbot.gg/developers/builds.md)
- Auth: A caller key holding `builds:admin` (`Authorization: Bearer sbc_…` or `x-api-key: sbc_…`), or a signed-in session.
- Scopes: `builds:admin`

## Request body

`application/json`, required.

- `max_concurrent` (integer)
- `max_queue` (integer)
- `paused` (boolean)

## Response 200

The queue, after the change.

`application/json`: XbQueueView.

- `paused` (boolean, required)
- `max_concurrent` (number, required)
- `max_queue` (number, required)
- `queued` (number, required)
- `running` (number, required)

## Errors

Every refusal carries `error`, `message`, `doc_url` and `request_id`; the gateway routes answer in the dialect you dialed.

| Status | Codes | When |
| --- | --- | --- |
| 400 | [`invalid_request`](https://superbot.gg/developers#errors-invalid_request) | The request is malformed or a parameter is invalid; `param` names the field. |
| 401 | [`unauthorized`](https://superbot.gg/developers#errors-unauthorized) | The bearer is missing, malformed or unknown. |
| 403 | [`insufficient_scope`](https://superbot.gg/developers#errors-insufficient_scope) | The key lacks a scope (insufficient_scope), is revoked, or may not call this route. |

## Examples

```sh
curl -sS -X PATCH "https://superbot.gg/v1/x-builds/queue" \
  -H "Authorization: Bearer $SUPERBOT_API_KEY" \
  -H "content-type: application/json" \
  -d '{"max_concurrent":1,"max_queue":1,"paused":true}'
```

```js
const res = await fetch(`https://superbot.gg/v1/x-builds/queue`, {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.SUPERBOT_API_KEY}`,
    'content-type': 'application/json',
  },
  body: JSON.stringify({"max_concurrent":1,"max_queue":1,"paused":true}),
});
console.log(res.status, await res.json());
```

```python
import os
import requests

res = requests.request(
    "PATCH",
    "https://superbot.gg/v1/x-builds/queue",
    headers={
        "Authorization": f"Bearer {os.environ['SUPERBOT_API_KEY']}",
        "content-type": "application/json",
    },
    json={"max_concurrent":1,"max_queue":1,"paused":True},
)
print(res.status_code, res.json())
```
