createIncomingPhoneNumberAssignedAddOn
Assign an Add-on installation to the Number specified.
Details
- Method:
POST - Path:
/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json - Operation ID:
CreateIncomingPhoneNumberAssignedAddOn
Parameters
{
"AccountSid": {
"description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource.",
"required": true,
"location": "path",
"type": "string"
},
"ResourceSid": {
"description": "The SID of the Phone Number to assign the Add-on.",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{
"type": "object",
"properties": {
"sid": {
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^XE[0-9a-fA-F]{32}$",
"nullable": true,
"description": "The unique string that that we created to identify the 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 the resource."
},
"resource_sid": {
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^PN[0-9a-fA-F]{32}$",
"nullable": true,
"description": "The SID of the Phone Number to which the Add-on is assigned."
},
"friendly_name": {
"type": "string",
"nullable": true,
"description": "The string that you assigned to describe the resource.",
"x-twilio": {
"pii": {
"handling": "standard",
"deleteSla": 30
}
}
},
"description": {
"type": "string",
"nullable": true,
"description": "A short description of the functionality that the Add-on provides."
},
"configuration": {
"nullable": true,
"description": "A JSON string that represents the current configuration of this Add-on installation."
},
"unique_name": {
"type": "string",
"nullable": true,
"description": "An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource."
},
"date_created": {
"type": "string",
"format": "date-time-rfc-2822",
"nullable": true,
"description": "The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format."
},
"date_updated": {
"type": "string",
"format": "date-time-rfc-2822",
"nullable": true,
"description": "The date and time in GMT that the 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`."
},
"subresource_uris": {
"type": "object",
"format": "uri-map",
"nullable": true,
"description": "A list of related resources identified by their relative URIs."
}
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('twilio')
# Call this tool
result = await agent.call_tool('createIncomingPhoneNumberAssignedAddOn', {
# Add required parameters here
})