Resume an Agent
Resume an agent‘s service from a queue. After an agent is resumed, the agent can receive calls from the queue.
Endpoint
POST /api/v0.0.1/queue/unpause_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
Request to restore the service of agent 1000.
POST /api/v0.0.1/queue/unpause_agent?token=813b621cfe8eecf445a2ce1f4a079ffe&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/unpause_agent?token=813b621cfe8eecf445a2ce1f4a079ffe&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>