Create Agent

Resource

https://api.infobip.com/ccaas/agents

Parameters

Body Params

Property name Type Description
displayName  string  
status string (OFFLINE) ACTIVE, BUSY, OFFLINE, AWAY
role string (AGENT) AGENT, SUPERVISOR
enabled boolean (TRUE) TRUE, FALSE

Request Example

					POST /ccaas/1/agents HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Accept: application/json

{
    "displayName": "Angus Young",
    "status": "AVAILABLE",
    "role": "SUPERVISOR",
    "enabled": true
}
					
				

Response

					{
    "id": "97457D13B1FC79AF3C1A1096AE7E77AB",
    "displayName": "Angus Young",
    "status": "AVAILABLE",
    "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"
}
					
				

Use this method to create a new agent.

Parameters

Property name Type Description
displayName string Agent name to be displayed, 255 characters max.
status string Possible agent status (ACTIVE, BUSY, OFFLINE, AWAY). If not provided, the agent will be set to default OFFLINE.
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