# Members subresource

Members is a subresource of [Queues](/docs/voice/api/queue-resource) and represents a single call in a call queue.

All members in a call queue can be identified by their unique `CallSid`, and the member at the front of the queue can be identified by the `Front` sid.

## Member Properties

```json
{"type":"object","refName":"api.v2010.account.queue.member","modelName":"api_v2010_account_queue_member","properties":{"call_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^CA[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the [Call](/docs/voice/api/call-resource) the Member resource is associated with."},"date_enqueued":{"type":"string","format":"date-time-rfc-2822","nullable":true,"description":"The date that the member was enqueued, given in RFC 2822 format."},"position":{"type":"integer","default":0,"description":"This member's current position in the queue."},"uri":{"type":"string","nullable":true,"description":"The URI of the resource, relative to `https://api.twilio.com`."},"wait_time":{"type":"integer","default":0,"description":"The number of seconds the member has been in the queue."},"queue_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^QU[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the Queue the member is in."}}}
```

## Retrieve a Member

`GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json`

You can address the member to fetch by its unique `CallSid` or by the `Front` sid to fetch the member at the front of the queue.

### Path parameters

```json
[{"name":"AccountSid","in":"path","description":"The SID of the [Account](/docs/iam/api/account) that created the Member resource(s) to fetch.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$"},"required":true},{"name":"QueueSid","in":"path","description":"The SID of the Queue in which to find the members to fetch.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^QU[0-9a-fA-F]{32}$"},"required":true},{"name":"CallSid","in":"path","description":"The [Call](/docs/voice/api/call-resource) SID of the resource(s) to fetch.","schema":{"type":"string"},"required":true}]
```

Retrieve a Member

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function fetchMember() {
  const member = await client
    .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .members("CallSid")
    .fetch();

  console.log(member.callSid);
}

fetchMember();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

member = (
    client.queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .members("CallSid")
    .fetch()
)

print(member.call_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Queue;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var member = await MemberResource.FetchAsync(
            pathQueueSid: "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", pathCallSid: "CallSid");

        Console.WriteLine(member.CallSid);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.queue.Member;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Member member = Member.fetcher("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "CallSid").fetch();

        System.out.println(member.getCallSid());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	api "github.com/twilio/twilio-go/rest/api/v2010"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &api.FetchMemberParams{}

	resp, err := client.Api.FetchMember("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"CallSid",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.CallSid != nil {
			fmt.Println(*resp.CallSid)
		} else {
			fmt.Println(resp.CallSid)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$member = $twilio
    ->queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->members("CallSid")
    ->fetch();

print $member->callSid;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

member = @client
         .api
         .v2010
         .queues('QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
         .members('CallSid')
         .fetch

puts member.call_sid
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:core:queues:members:fetch \
   --queue-sid QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
   --call-sid CallSid
```

```bash
curl -X GET "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CallSid.json" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "call_sid": "CallSid",
  "date_enqueued": "Tue, 07 Aug 2012 22:57:41 +0000",
  "position": 1,
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
  "wait_time": 143
}
```

Retrieve a Member at the front of the queue

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function fetchMember() {
  const member = await client
    .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .members("Front")
    .fetch();

  console.log(member.callSid);
}

fetchMember();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

member = (
    client.queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").members("Front").fetch()
)

print(member.call_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Queue;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var member = await MemberResource.FetchAsync(
            pathQueueSid: "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", pathCallSid: "Front");

        Console.WriteLine(member.CallSid);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.queue.Member;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Member member = Member.fetcher("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "Front").fetch();

        System.out.println(member.getCallSid());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	api "github.com/twilio/twilio-go/rest/api/v2010"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &api.FetchMemberParams{}

	resp, err := client.Api.FetchMember("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"Front",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.CallSid != nil {
			fmt.Println(*resp.CallSid)
		} else {
			fmt.Println(resp.CallSid)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$member = $twilio
    ->queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->members("Front")
    ->fetch();

print $member->callSid;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

member = @client
         .api
         .v2010
         .queues('QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
         .members('Front')
         .fetch

puts member.call_sid
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:core:queues:members:fetch \
   --queue-sid QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
   --call-sid Front
```

```bash
curl -X GET "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/Front.json" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "call_sid": "Front",
  "date_enqueued": "Tue, 07 Aug 2012 22:57:41 +0000",
  "position": 1,
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
  "wait_time": 143
}
```

## Retrieve a list of Members

`GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json`

### Path parameters

```json
[{"name":"AccountSid","in":"path","description":"The SID of the [Account](/docs/iam/api/account) that created the Member resource(s) to read.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$"},"required":true},{"name":"QueueSid","in":"path","description":"The SID of the Queue in which to find the members","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^QU[0-9a-fA-F]{32}$"},"required":true}]
```

### Query parameters

```json
[{"name":"PageSize","in":"query","description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","schema":{"type":"integer","format":"int64","minimum":1,"maximum":1000}},{"name":"Page","in":"query","description":"The page index. This value is simply for client state.","schema":{"type":"integer","minimum":0}},{"name":"PageToken","in":"query","description":"The page token. This is provided by the API.","schema":{"type":"string"}}]
```

Retrieve a list of Members

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function listMember() {
  const members = await client
    .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .members.list({ limit: 20 });

  members.forEach((m) => console.log(m.callSid));
}

listMember();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

members = client.queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").members.list(
    limit=20
)

for record in members:
    print(record.call_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Queue;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var members = await MemberResource.ReadAsync(
            pathQueueSid: "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", limit: 20);

        foreach (var record in members) {
            Console.WriteLine(record.CallSid);
        }
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.queue.Member;
import com.twilio.base.ResourceSet;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<Member> members = Member.reader("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").limit(20).read();

        for (Member record : members) {
            System.out.println(record.getCallSid());
        }
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	api "github.com/twilio/twilio-go/rest/api/v2010"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &api.ListMemberParams{}
	params.SetLimit(20)

	resp, err := client.Api.ListMember("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		for record := range resp {
			if resp[record].CallSid != nil {
				fmt.Println(*resp[record].CallSid)
			} else {
				fmt.Println(resp[record].CallSid)
			}
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$members = $twilio
    ->queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->members->read(20);

foreach ($members as $record) {
    print $record->callSid;
}
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

members = @client
          .api
          .v2010
          .queues('QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
          .members
          .list(limit: 20)

members.each do |record|
   puts record.call_sid
end
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:core:queues:members:list \
   --queue-sid QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```

```bash
curl -X GET "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members.json?PageSize=20" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "end": 0,
  "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members.json?PageSize=50&Page=0",
  "next_page_uri": null,
  "page": 0,
  "page_size": 50,
  "previous_page_uri": null,
  "queue_members": [
    {
      "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "date_enqueued": "Mon, 17 Dec 2018 18:36:39 +0000",
      "position": 1,
      "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
      "wait_time": 124
    }
  ],
  "start": 0,
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members.json?PageSize=50&Page=0"
}
```

## Update a Member

`POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json`

Updating a Member subresource dequeues the member to begin executing the TwiML document at that URL.

You can address the member to dequeue by its unique `CallSid` or by the `Front` sid.

If you successfully dequeue a member by its unique `CallSid`, it will no longer be queued so a second update action on that same member will fail.

When dequeueing a member by using the `Front` SID, that member will be dequeued and the next member in the queue will take its place.

### Path parameters

```json
[{"name":"AccountSid","in":"path","description":"The SID of the [Account](/docs/iam/api/account) that created the Member resource(s) to update.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$"},"required":true},{"name":"QueueSid","in":"path","description":"The SID of the Queue in which to find the members to update.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^QU[0-9a-fA-F]{32}$"},"required":true},{"name":"CallSid","in":"path","description":"The [Call](/docs/voice/api/call-resource) SID of the resource(s) to update.","schema":{"type":"string"},"required":true}]
```

### Request body parameters

```json
{"schema":{"type":"object","title":"UpdateMemberRequest","required":["Url"],"properties":{"Url":{"type":"string","format":"uri","description":"The absolute URL of the Queue resource."},"Method":{"type":"string","format":"http-method","enum":["GET","POST"],"description":"How to pass the update request data. Can be `GET` or `POST` and the default is `POST`. `POST` sends the data as encoded form data and `GET` sends the data as query parameters."}}},"examples":{"update":{"value":{"lang":"json","value":"{\n  \"Method\": \"GET\",\n  \"Url\": \"https://example.com\"\n}","meta":"","code":"{\n  \"Method\": \"GET\",\n  \"Url\": \"https://example.com\"\n}","tokens":[["{","#C9D1D9"],"\n  ",["\"Method\"","#7EE787"],[":","#C9D1D9"]," ",["\"GET\"","#A5D6FF"],[",","#C9D1D9"],"\n  ",["\"Url\"","#7EE787"],[":","#C9D1D9"]," ",["\"https://example.com\"","#A5D6FF"],"\n",["}","#C9D1D9"]],"annotations":[],"themeName":"github-dark","style":{"color":"#c9d1d9","background":"#0d1117"}}},"dequeueFront":{"value":{"lang":"json","value":"{\n  \"Method\": \"GET\",\n  \"Url\": \"https://example.com\"\n}","meta":"","code":"{\n  \"Method\": \"GET\",\n  \"Url\": \"https://example.com\"\n}","tokens":[["{","#C9D1D9"],"\n  ",["\"Method\"","#7EE787"],[":","#C9D1D9"]," ",["\"GET\"","#A5D6FF"],[",","#C9D1D9"],"\n  ",["\"Url\"","#7EE787"],[":","#C9D1D9"]," ",["\"https://example.com\"","#A5D6FF"],"\n",["}","#C9D1D9"]],"annotations":[],"themeName":"github-dark","style":{"color":"#c9d1d9","background":"#0d1117"}}}},"encodingType":"application/x-www-form-urlencoded","conditionalParameterMap":{}}
```

Update a Member

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function updateMember() {
  const member = await client
    .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .members("CallSid")
    .update({ url: "https://www.example.com" });

  console.log(member.callSid);
}

updateMember();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

member = (
    client.queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .members("CallSid")
    .update(url="https://www.example.com")
)

print(member.call_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Queue;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var member = await MemberResource.UpdateAsync(
            url: new Uri("https://www.example.com"),
            pathQueueSid: "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            pathCallSid: "CallSid");

        Console.WriteLine(member.CallSid);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import java.net.URI;
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.queue.Member;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Member member =
            Member.updater("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "CallSid", URI.create("https://www.example.com"))
                .update();

        System.out.println(member.getCallSid());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	api "github.com/twilio/twilio-go/rest/api/v2010"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &api.UpdateMemberParams{}
	params.SetUrl("https://www.example.com")

	resp, err := client.Api.UpdateMember("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"CallSid",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.CallSid != nil {
			fmt.Println(*resp.CallSid)
		} else {
			fmt.Println(resp.CallSid)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$member = $twilio
    ->queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->members("CallSid")
    ->update(
        "https://www.example.com" // Url
    );

print $member->callSid;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

member = @client
         .api
         .v2010
         .queues('QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
         .members('CallSid')
         .update(url: 'https://www.example.com')

puts member.call_sid
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:core:queues:members:update \
   --queue-sid QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
   --call-sid CallSid \
   --url https://www.example.com
```

```bash
curl -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CallSid.json" \
--data-urlencode "Url=https://www.example.com" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "call_sid": "CallSid",
  "date_enqueued": "Thu, 06 Dec 2018 18:42:47 +0000",
  "position": 1,
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
  "wait_time": 143
}
```

Update a Member at the front of the queue

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function updateMember() {
  const member = await client
    .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .members("Front")
    .update({ url: "https://www.example.com" });

  console.log(member.callSid);
}

updateMember();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

member = (
    client.queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .members("Front")
    .update(url="https://www.example.com")
)

print(member.call_sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Queue;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var member = await MemberResource.UpdateAsync(
            url: new Uri("https://www.example.com"),
            pathQueueSid: "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            pathCallSid: "Front");

        Console.WriteLine(member.CallSid);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import java.net.URI;
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.queue.Member;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Member member =
            Member.updater("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "Front", URI.create("https://www.example.com"))
                .update();

        System.out.println(member.getCallSid());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	api "github.com/twilio/twilio-go/rest/api/v2010"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &api.UpdateMemberParams{}
	params.SetUrl("https://www.example.com")

	resp, err := client.Api.UpdateMember("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"Front",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.CallSid != nil {
			fmt.Println(*resp.CallSid)
		} else {
			fmt.Println(resp.CallSid)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$member = $twilio
    ->queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->members("Front")
    ->update(
        "https://www.example.com" // Url
    );

print $member->callSid;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

member = @client
         .api
         .v2010
         .queues('QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
         .members('Front')
         .update(url: 'https://www.example.com')

puts member.call_sid
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:core:queues:members:update \
   --queue-sid QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
   --call-sid Front \
   --url https://www.example.com
```

```bash
curl -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/Front.json" \
--data-urlencode "Url=https://www.example.com" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "call_sid": "Front",
  "date_enqueued": "Thu, 06 Dec 2018 18:42:47 +0000",
  "position": 1,
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
  "wait_time": 143
}
```
