Open Context Protocol is live! 🚀 Read the launch post

updateSiprec

Stop a Siprec using either the SID of the Siprec resource or the name used when creating the resource

Details

  • Method: POST
  • Path: /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json
  • Operation ID: UpdateSiprec

Parameters

{
  "AccountSid": {
    "description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "CallSid": {
    "description": "The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "Sid": {
    "description": "The SID of the Siprec resource, or the `name` used when creating the resource",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "sid": {
      "type": "string",
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^SR[0-9a-fA-F]{32}$",
      "nullable": true,
      "description": "The SID of the Siprec resource."
    },
    "account_sid": {
      "type": "string",
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^AC[0-9a-fA-F]{32}$",
      "nullable": true,
      "description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource."
    },
    "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 Siprec resource is associated with."
    },
    "name": {
      "type": "string",
      "nullable": true,
      "description": "The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec."
    },
    "status": {
      "type": "string",
      "enum": [
        "in-progress",
        "stopped"
      ],
      "description": "The status - one of `stopped`, `in-progress`"
    },
    "date_updated": {
      "type": "string",
      "format": "date-time-rfc-2822",
      "nullable": true,
      "description": "The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format."
    },
    "uri": {
      "type": "string",
      "nullable": true,
      "description": "The URI of the resource, relative to `https://api.twilio.com`."
    }
  }
}

Usage

from ocp_agent import OCPAgent

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

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