> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# update

> Update a queue.

Update a queue's configuration. Uses POST (Twilio convention).

### Schema

```yaml
openapi: 3.1.0
info:
  title: API
  version: 1.0.0
paths:
  /Accounts/{AccountSid}/Queues/{Sid}:
    post:
      operationId: update_queue
      summary: Update a Queue
      description: >-
        Modify the properties of a call queue. Queue names must be unique among
        active queues within an account. Deleted queue names can be reused.


        #### Permissions


        The API token used to authenticate must have the following scope(s)
        enabled to make a successful request: _Voice_.


        [Learn more about API scopes](/docs/platform/your-signalwire-api-space).
      tags:
        - subpackage_queues
      parameters:
        - name: AccountSid
          in: path
          description: The unique identifier for the account this Queue is associated with.
          required: true
          schema:
            $ref: '#/components/schemas/uuid'
        - name: Sid
          in: path
          description: The unique identifier for the queue.
          required: true
          schema:
            $ref: '#/components/schemas/uuid'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueueResponse'
        '400':
          description: >-
            The request was invalid or cannot be processed. Check the error
            details for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompatibilityErrorResponse'
        '401':
          description: Authentication failed. Please verify your credentials and try again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompatibilityErrorResponse'
        '404':
          description: >-
            The requested resource was not found. Please verify the resource
            identifier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompatibilityErrorResponse'
        '422':
          description: >-
            The request could not be processed due to validation errors. Check
            the error details for more information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompatibilityErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateQueueRequest'
servers:
  - url: https://YOUR_SPACE.signalwire.com/api/laml/2010-04-01
    description: SignalWire Compatibility API
components:
  schemas:
    uuid:
      type: string
      format: uuid
      description: Universal Unique Identifier.
      title: uuid
    UpdateQueueRequest:
      type: object
      properties:
        FriendlyName:
          type: string
          description: >-
            A unique name for the queue. Must contain only alphanumeric
            characters and underscores.
        MaxSize:
          type: integer
          description: >-
            The maximum number of calls that are allowed to wait in a queue.
            Must be a positive integer.
      required:
        - FriendlyName
      description: Request body for updating a queue.
      title: UpdateQueueRequest
    QueueResponse:
      type: object
      properties:
        sid:
          $ref: '#/components/schemas/uuid'
          description: The unique identifier for the queue.
        account_sid:
          $ref: '#/components/schemas/uuid'
          description: The unique identifier for the account this Queue is associated with.
        friendly_name:
          type: string
          description: A description that distinguishes a queue.
        max_size:
          type:
            - integer
            - 'null'
          description: >-
            The maximum number of calls that are allowed to wait in a queue.
            Null if no limit is set.
        current_size:
          type: integer
          description: The number of calls currently waiting in the queue.
        average_wait_time:
          type: integer
          description: The average wait time, in seconds, of callers in a queue.
        date_created:
          type: string
          description: The date and time, in RFC 2822 format, the Queue was created.
        date_updated:
          type: string
          description: The date and time, in RFC 2822 format, the Queue was updated.
        api_version:
          type: string
          description: The version of the SignalWire API.
        uri:
          type: string
          description: The URI of this resource, relative to the API base URL.
      required:
        - sid
        - account_sid
        - friendly_name
        - max_size
        - current_size
        - average_wait_time
        - date_created
        - date_updated
        - api_version
        - uri
      description: Response containing a single queue.
      title: QueueResponse
    CompatibilityErrorResponse:
      type: object
      properties:
        code:
          type: integer
          description: Error code.
        message:
          type: string
          description: Error message.
        more_info:
          type: string
          description: URL for more information about the error.
        status:
          type: integer
          description: HTTP status code.
      required:
        - code
        - message
        - more_info
        - status
      description: Error response model.
      title: CompatibilityErrorResponse

```

## **Response Example**

### Response (200)

```json
{
  "sid": "b3877c40-da60-4998-90ad-b792e98472qu",
  "account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
  "friendly_name": "Queue1",
  "max_size": 100,
  "current_size": 0,
  "average_wait_time": 0,
  "date_created": "Wed, 26 Sep 2018 18:00:00 +0000",
  "date_updated": "Thu, 27 Sep 2018 19:00:00 +0000",
  "api_version": "2010-04-01",
  "uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Queues/b3877c40-da60-4998-90ad-b792e98472qu.json"
}
```

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

client.compat.queues.update("QU...", FriendlyName="Support Queue", MaxSize=200)
```