Create Agent - Early Access
Resource
https://api.infobip.com/ccaas/1/agents
Parameters
Use this method to add a new agent.
| Property name | Type | Description |
|---|---|---|
| *displayName | string | Required - Agent name to be displayed, 255 characters max. |
| status | string | Possible agent status (ACTIVE, BUSY,INVISIBLE, AWAY). If not provided, the agent will be set to default INVISIBLE. |
| role | string | Possible agent role (AGENT, SUPERVISOR). If not provided, the agent will be set to default AGENT. |
| enabled | boolean | Possible agent status (TRUE, FALSE). if not provided, agent will be set to default TRUE |
Request Example
POST /ccaas/1/agents HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Accept: application/json
{
"displayName": "Angus Young",
"status": "ACTIVE",
"role": "SUPERVISOR",
"enabled": true
}
Response
{
"id": "97457D13B1FC79AF3C1A1096AE7E77AB",
"displayName": "Angus Young",
"status": "ACTIVE",
"role": "SUPERVISOR",
"enabled": true,
"createdAt": "2019-05-10T09:53:58.463+0000",
"updatedAt": "2019-05-10T09:53:58.463+0000"
}
{
"statusCode": "ERROR",
"message": "Required request body is missing or not valid"
}