API : PBX : Call Variable Set
Introduction
This request will set the value of a variable on an ongoing call.
Request
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> |