Use the GET API to retrieve an existing agent and associated
attributes.
 Note |
Creating or deleting agents is not supported via the API or web gadgets in Unified CCE. You can create or delete agents with the Agent Explorer tool found within the Configuration Manager.
|
Syntax
URL: https://<server>/unifiedconfig/config/agent/id
HTTP method: GET
| Agent
parameters |
Data type |
Description |
| agentId |
11
digit string containing 0 to 9 only |
The PeripheralNumber. Each agentID must be unique for each
peripheral.
|
| description |
|
The description of this desk setting.
|
|
agentStateTrace |
True/False |
Indicates whether the software collects agent state trace data
for the agent.
|
|
changeStamp |
Integer |
Increments when the record changes in the database.
|
|
supervisor |
True/False |
Indicates whether the agent is marked as supervisor.
|
| peripheral |
Node |
Indicates peripheral ID and name.
|
| Agent Attribute |
Node |
The attributes that have been configured for the agent along with
their dataType and value.
|
Additional Parameters
The agent API can also return the following additional information:
- Agent desk settings
- Person details
- Supervisor details
- Skillgroup details and
default skillgroup details
- Agent team details
For additional parameter details, see the following sections.
Agent Desk Setting Parameters
The API can return agent desk settings associated with an agent.
| Agent desk setting
parameters |
Data
type |
Description |
| refURL |
URL |
RefURL to the AgentDeskSettings object
|
Agent Attribute Parameters
The API can return the attributes associated with an agent.
| Agent attribute
parameters |
Data
type |
Description |
| attributeValue |
True/False
or Integer |
The value of the attribute for the agent. Must be convertible to
the data type of the attribute.
|
| description |
String |
Per agent attribute description.
|
The API can also return the attributes details associated with the
attribute.
| Agent attribute
parameters |
Data
type |
Description |
| refURL |
|
RefURL to the attribute object.
|
| name |
String |
Name of the attribute.
|
| dataType |
3 -
Boolean or 4 - Proficiency |
Type of attribute.
|
| description |
String |
Attribute description.
|
Peripheral Parameters
The API always returns the peripheral associated with the agent.
| Peripheral parameters |
Data type |
Description |
| id |
Integer |
ID of the peripheral.
|
| name |
String |
Name of the peripheral.
|
Person Parameters
The API can also return the attributes details associated with the
attribute.
| Person parameters |
Data
type |
Description |
| firstName |
String |
First name of the agent (person).
|
| lastName |
String |
Last name of the agent (person).
|
| loginName |
String |
Login name of the agent (person).
|
| password |
String |
Password for the agent (person); not returned in read
operations.
|
| loginEnabled |
True/False |
Indicates whether the login is enabled for the agent (person).
|
Supervisor UserInfo Parameters
The API can also return the supervisor details associated with the
agent.
| Supervisor UserInfo
parameters |
Data
type |
Description |
| userName |
String |
The active directory username for this supervisor.
|
| domainName |
String |
The active directory domain name for this supervisor. If empty,
the default name is used.
|
Skill Group Parameters
The API can return the skill group details associated with the agent
| Skill Group
parameters |
Data
type |
Description |
| refURL |
|
RefURL to the skill group.
|
| name |
String |
Name of the skill group.
|
Default Skill Group Parameters
The API can also return the default skill group details associated
with the agent.
| Default Skill Group
Parameters |
Data
Type |
Description |
| refURL |
|
RefURL to the default skill group.
|
| name |
String |
Name of the default skill group
|
Agent Team Parameters
The API can also return the attributes details associated with the
attribute.
| Agent team
parameters |
Data
Type |
Description |
| refURL |
|
RefURL to the agent team.
|
| name |
String |
Name of the agent team to which the agent belongs.
|
Example XML Response
URL: https://server:port/unifiedconfig/config/agent/5000
<agent>
<changeStamp>218</changeStamp>
<refURL>/unifiedconfig/config/agent/5023</refURL>
<agentDeskSettings>
<refURL>/unifiedconfig/config/agentdesksetting/5000</refURL>
<name>Default_Agent_Desk_Settings</name>
</agentDeskSettings>
<agentId>2115319</agentId>
<agentStateTrace>false</agentStateTrace>
<agentAttributes>
<agentAttribute>
<attribute>
<refURL>/unifiedconfig/config/attribute/9001</refURL>
<name>AT_3040_00000</name>
<dataType>3</dataType>
</attribute>
<attributeValue>true</attributeValue>
</agentAttribute>
</agentAttributes>
<description>Agent2 Create Default Description</description>
<peripheral>
<id>5000</id>
<name>CUCM_PG_1</name>
</peripheral>
<person>
<firstName>AgentFirstName_1826_01374</firstName>
<lastName>AgentLastName_1826_01375</lastName>
<loginEnabled>true</loginEnabled>
<userName>AgentUserName_1826_01376</userName>
</person>
<supervisor>false</supervisor>
</agent>