api:pbx:dialplan:position
Table of Contents
API : PBX : Dialplan Set position
Introduction
This will update the x/y position of a dialplan element. It is used when a dialplan element is moved around on the visual dialplan.
Request
| URL | https://api.telecomx.dk/pbx/dialplan/ID/position | |
|---|---|---|
| Method | POST | |
| Access level | MANAGER or OWNER if user belongs to the customer. RESELLER if customer belongs to the reseller. ADMIN. |
|
| Param | ID | Id of the item (24 hex-char string) |
| Body | x | New X position |
| y | New Y position | |
Query examples
{
"x": 200,
"y": 123
}
Response
| Field | Type | Description |
|---|---|---|
| success | Boolean | True on success |
Example
{ "success": true }
Errors
| Error code | Message | Description |
|---|---|---|
| 404 | id | Dialplan item not found |
| 422 | x | X position missing |
| 422 | y | Y position missing |
| 403 | access_denied | Access denied |
| 500 | internal_error | <Unspecified> |
api/pbx/dialplan/position.txt · Last modified: 2021/10/27 08:04 by Per Møller