Get List of Resources

URI

https://<server>/adminapi/resource

Example URI

https://uccx-server/adminapi/resource

HTTPS Method

GET

Accept

Application/XML, Application/JSON

HTTPS Success Code

200

HTTPS Failure Codes

401, 405

Error Codes

Success Response

Note

The response depends on the credentials provided. The following are the use cases that are observed when this API is invoked:

  • When an administrator gets the list of resources, the response has the complete list of agents.

  • When a supervisor gets the list of resources, the response has the list of agents corresponding to the team of the supervisor. The supervisor can be either a primary or secondary supervisor.

  • The query parameter combination of withCsqs and detail=none is invalid.

  
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<resources>
  <resource>
    <self>https://uccx-server/adminapi/resource/agent1333</self>
    <userID>agent1333</userID>
    <firstName></firstName>
    <lastName>agent1333</lastName>
    <extension>2244333</extension>
    <alias>uccx</alias>
    <skillMap>
    	<skillCompetency>
    		<competencelevel>5</competencelevel>
    			<skillNameUriPair name="OBAgentSkill">
    					<refURL>https://uccx-server/adminapi/skill/3</refURL>
    			</skillNameUriPair>
    		</skillCompetency>
    </skillMap>
    <autoAvailable>true</autoAvailable>
    <type>1</type>
    <team name="Default">
    	<refURL>https://uccx-server/adminapi/team/1</refURL>
    </team>
    <primarySupervisorOf/>
    <secondarySupervisorOf/>
  </resource>
</resources>