From Bright Pattern Documentation
Jump to: navigation, search
Line 8: Line 8:
 
=== HTTP Method ===
 
=== HTTP Method ===
 
GET
 
GET
 
=== Content-Type ===
 
application/json
 
 
=== Parameters ===
 
{|border="1" style="border-collapse:collapse" cellpadding="5"
 
| '''Parameter'''
 
| '''Data-Type'''
 
| '''Description'''
 
| '''Example'''
 
|-
 
| loginId
 
| string
 
| The username of the user that you want to get data for
 
| "sheila.thomas"
 
|}
 
 
=== Request Body ===
 
Empty. All you need is the username in the URL and the content-type header.
 
 
  
 
== Response ==
 
== Response ==
In response to a successful request, the user data is displayed in JSON. You can verify user data by checking the same user information in ''Contact Center Administrator > Users & Teams > [[5.3:Contact-center-administrator-guide/Users |  Users]]''.
+
  {  
 
+
  "loginId": "test008",
For failed requests, no user data is shown.
+
  "firstName": "test",
 
+
  "lastName": "008",
=== Example Response ===
+
  "team": "Maintenance Renewal",
<syntaxhighlight  lang="json">
 
  {
 
  "loginId" : "sheila.thomas",
 
  "firstName" : "Sheila",
 
  "lastName" : "Thomas",
 
  "team" : "Customer Service",
 
"email": "sheila.thomas@yourcompany.com",
 
 
  "extension": "2072",
 
  "extension": "2072",
 
  "workPhone": "123456",
 
  "workPhone": "123456",
 
  "mobilePhone": "78910",
 
  "mobilePhone": "78910",
 +
"email": "test008@nowhere.net",
 
  "disabled": false,
 
  "disabled": false,
 
  "changePassword": true,
 
  "changePassword": true,
 
  "skills": {
 
  "skills": {
   "Customer Service": 100,
+
   "Maintenance Renewal": 100,
 
   "English": 33
 
   "English": 33
 
  },
 
  },
  "roles": ["Agent"]
+
  "roles": [
  }
+
  "Agent",
</syntaxhighlight>
+
  "Supervisor"
 
+
]
 +
  }  
  
  

Revision as of 00:08, 8 March 2019

• 5.2

<translate>= Get User Data= Returns user data, such as name, team, extension, skills, and so forth.

Request

URL

http[s]://<host>/configapi/v2/user/<login_id>

HTTP Method

GET

Response

{ 
"loginId": "test008",
"firstName": "test",
"lastName": "008",
"team": "Maintenance Renewal",
"extension": "2072",
"workPhone": "123456",
"mobilePhone": "78910",
"email": "test008@nowhere.net",
"disabled": false,
"changePassword": true,
"skills": {
  "Maintenance Renewal": 100,
  "English": 33
},
"roles": [
  "Agent",
  "Supervisor"
]
} 



</translate>

< Previous | Next >