callsEnd
Ends a Call.
Details
- Method:
POST - Path:
/calls.end - Operation ID:
calls_end
Parameters
{
"token": {
"description": "Authentication token. Requires scope: `calls:write`",
"required": true,
"location": "header",
"type": "string"
},
"id": {
"description": "`id` returned when registering the call using the [`calls.add`](/methods/calls.add) method.",
"required": true,
"location": "formData",
"type": "string"
},
"duration": {
"description": "Call duration in seconds",
"required": false,
"location": "formData",
"type": "string"
}
}Response Schema
{
"additionalProperties": true,
"description": "This method either only returns a brief _OK_ response or a verbose schema is not available for this method.",
"properties": {
"ok": {
"enum": [
true
],
"title": "default success response",
"type": "boolean"
}
},
"required": [
"ok"
],
"title": "Default success template",
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('slack')
# Call this tool
result = await agent.call_tool('callsEnd', {
# Add required parameters here
})