Open Context Protocol is live! 🚀 Read the launch post

updateMember

Dequeue a member from a queue and have the member’s call begin executing the TwiML document at that URL

Details

  • Method: POST
  • Path: /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json
  • Operation ID: UpdateMember

Parameters

{
  "AccountSid": {
    "description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "QueueSid": {
    "description": "The SID of the Queue in which to find the members to update.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "CallSid": {
    "description": "The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update.",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "call_sid": {
      "type": "string",
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^CA[0-9a-fA-F]{32}$",
      "nullable": true,
      "description": "The SID of the [Call](https://www.twilio.com/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."
    }
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('twilio')

# Call this tool
result = await agent.call_tool('updateMember', {
    # Add required parameters here
})