Pause an Agent
If an agent is paused, the agent would not receive calls from the queue.
Endpoint
POST /api/v0.0.1/queue/pause_agent?token={token}&type={type}
Request Parameters
Parameter Name | Importance | Type | Description |
queueid | Required | Int | Queue number. |
extid | Required | Int | Extension number of the agent. |
Examples
Request Example
POST /api/v0.0.1/queue/pause_agent?token=1e3b3ebb6a974cb42ed31de5413df52d&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
“queueid”: “9998”,
“extid”: “6000”
}
POST /api/v0.0.1/queue/pause_agent?token=1e3b3ebb6a974cb42ed31de5413df52d&type=xml HTTP/1.1
Content-Type:application/xml; charset=utf-8
Host: 172.16.6.150
<?xml version=”1.0″ encoding=”UTF-8″ ?>
<xml>
<queueid>9998</queueid>
<extid>6000</extid>
</xml>
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
“status”: “Success”
}
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
<?xml version=”1.0″ encoding=”utf-8″?>
<xml>
<status>Success</status>
</xml>