Update a queue
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const queue = await mv.queues.update("q_7Hk2Lm9Qp", { enabled: false,});console.log(queue);from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
queue = client.queues.update("q_7Hk2Lm9Qp", { "enabled": False,})print(queue)curl -X PATCH https://api.morevoice.ai/v1/queues/q_7Hk2Lm9Qp \ -H "Authorization: Bearer $MOREVOICE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "enabled": false}'Updates the fields you send. Nested objects (overflow, hold, callbacks…) merge with the stored values; lists replace them.
Try it in the API playground with a test-mode key.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A queue ID (q_…).
Header Parameters
Section titled “Header Parameters”The API version to use for this request. Defaults to the version the API key is pinned to.
Example
2026-11-01Request Body
Section titled “Request Body”The fields to change; nested objects merge with the stored values and lists are replaced.
object
Fields you leave out are kept.
Fields you leave out are kept. Requiring skills needs skills routing on for your organisation.
object
Replaces the stored list.
object
Default 1.
object
object
object
Example
{ "enabled": false}Responses
Section titled “Responses”OK
A queue of callers waiting for a human agent.
object
An agent who misses a call is set to away.
How callbacks requested in this queue are returned.
object
1 (low) to 10 (urgent).
Who returns this queue’s callbacks: its agents, one agent or an AI assistant.
A voicemail left in this queue becomes a callback task too.
An ISO-8601 timestamp in UTC.
A disabled queue takes no calls: they overflow.
object
Tell callers their place in line.
Said to callers when they join the queue.
What callers hear while they wait; asset plays audio_asset_id in a loop.
The queue’s ID.
true in live mode, false in test mode.
How long a caller waits before the overflow action (0: no limit).
Teams whose members answer this queue’s calls.
Users who answer this queue’s calls.
What happens to callers who waited too long, or when nobody can answer.
object
Action number: the phone number the call is forwarded to.
Overflow at once when no agent is signed in.
How long an agent’s phone rings before the next agent is tried.
Skills routing: the queue rings the best-matching free agent first. Applies while skills routing is on for your organisation.
object
After this long without a qualified agent answering, any member may take the call (0: at once, the best match still first).
Among qualified agents, the one with the highest levels rings first; otherwise the queue’s strategy picks.
What a caller of this queue needs. Empty: no skills routing here (a flow transfer may still add requirements).
object
The lowest level (1-5) that qualifies.
A skill name, or lang:<code> for a language (lang:he, lang:ar, lang:ru, lang:en, lang:am, lang:fr).
Sticky routing: a returning caller first rings the agent they last spoke with.
object
How far back the caller’s last agent counts.
How long that agent rings alone (and is waited for while on another call) before the queue’s strategy.
Which available agent rings first: the one idle longest, or in turn; ring_all rings every available agent at once and the first to answer takes the call.
An ISO-8601 timestamp in UTC.
object
Played before the beep (empty: the default).
object
Pressed while waiting: ask for a callback (empty: off).
Pressed while waiting: leave a voicemail (empty: off).
After-call time before an agent gets the next call.
Example
{ "away_on_missed": true, "callbacks": { "agent_id": null, "assistant_id": null, "priority": 5, "route": "agent_queue", "voicemail_to_callback": false }, "copilot_profile_id": null, "created": "2026-11-03T09:14:22.000Z", "enabled": true, "hold": { "announce_position": false, "announcement": "", "audio": "music", "audio_asset_id": null, "position_interval_seconds": 45 }, "id": "q_4Gk2LmN9pQ4rS6tV8wX0yZ", "livemode": true, "max_wait_seconds": 120, "member_team_ids": [ "team_7Hj2Kl4Mn6Pq8Rs0Tu2Vw" ], "member_user_ids": [ "usr_2Lm8Pq4Rt6Vx0Zb3Nd5Fh7" ], "name": "Support", "object": "queue", "overflow": { "action": "assistant", "assistant_id": "asst_3cYbE6uYvGkH8w4ZK1rTqd", "number": "", "queue_id": null, "user_id": null, "when_no_agents": true }, "ring_timeout_seconds": 20, "skills": { "fallback_seconds": 30, "prefer_highest_level": false, "required": [ { "min_level": 3, "skill": "lang:ru" } ] }, "sticky": { "days": 30, "enabled": false, "ring_seconds": 20 }, "strategy": "longest_idle", "updated": "2026-11-03T09:14:22.000Z", "voice_assistant_id": null, "voicemail": { "max_seconds": 90, "message": "" }, "wait_keys": { "callback": "", "voicemail": "" }, "wrap_up_seconds": 15}The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "parameter_missing", "doc_url": "https://docs.morevoice.ai/api/errors#parameter-missing", "message": "Missing required parameter: to.", "param": "to", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "invalid_request_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
No valid API key was sent.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "invalid_api_key", "doc_url": "https://docs.morevoice.ai/api/errors#invalid-api-key", "message": "Invalid API key.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "authentication_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
The key may not do this (a missing scope, a plan limit, or a compliance block).
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "missing_scope", "doc_url": "https://docs.morevoice.ai/api/errors#missing-scope", "message": "This API key lacks the calls:write scope.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "permission_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
No object with this ID (in the path or the body) exists in this organisation and mode.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "resource_missing", "doc_url": "https://docs.morevoice.ai/api/errors#resource-missing", "message": "No such object: 'call_4Gk2'.", "param": "id", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "not_found" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
The request conflicts with the object’s state, or the Idempotency-Key was reused with other parameters.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "idempotency_mismatch", "doc_url": "https://docs.morevoice.ai/api/errors#idempotency-mismatch", "message": "This Idempotency-Key was already used with different parameters.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "idempotency_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
The request body is larger than the endpoint accepts, or has more parts or files than it takes.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "body_too_large", "doc_url": "https://docs.morevoice.ai/api/errors#body-too-large", "message": "The request body is larger than the endpoint accepts.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "invalid_request_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
The request body’s Content-Type is not one the endpoint takes.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "unsupported_media_type", "doc_url": "https://docs.morevoice.ai/api/errors#unsupported-media-type", "message": "This endpoint takes application/json.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "invalid_request_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
Too many requests, or no call capacity right now. Retry after the Retry-After delay.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "rate_limited", "doc_url": "https://docs.morevoice.ai/api/errors#rate-limited", "message": "Too many requests. Retry after 1 second.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "rate_limit_error" }}Headers
Section titled “Headers”Seconds to wait before retrying.
The request’s ID (req_…). Quote it when you contact support.
Something went wrong on MoreVoice’s side. Retry with the same Idempotency-Key.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "internal_error", "doc_url": "https://docs.morevoice.ai/api/errors#internal-error", "message": "Something went wrong on MoreVoice's side.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "api_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.