api:pbx:callvariable:set
Table of Contents
API : PBX : Call Variable Set
Introduction
This request will set the value of a variable on an ongoing call.
Request
| URL | https://api.telecomx.dk/pbx/callvariable/CALL_ID/VARIABLE_NAME/VALUE | |
|---|---|---|
| Method | GET | |
| Access level | PERSONAL, VIEWER, MANAGER, OWNER, RESELLER, ADMIN. | |
| Param | CALL_ID | Id of call. |
| VARIABLE_NAME | Name of the variable. | |
| VALUE | Value to set. | |
Query example
https://api.telecomx.dk/pbx/variable/pbx4.telecomx.dk:45455544.43/onduty/300
Response
The new value of the variable.
| Json object | ||
|---|---|---|
| name | String | Name of variable |
| value | String | Value of variable |
Example
{ name: 'onduty', value: '300' }
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 404 | name | Variable not found |
| 422 | value | Invalid value |
| 500 | internal_error | <Unspecified> |
api/pbx/callvariable/set.txt · Last modified: 2020/08/10 12:51 by Per Møller