From Bright Pattern Documentation
Jump to: navigation, search
m
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<translate>= Create User=
 
<translate>= Create User=
This API is used to create a new user in the system.
+
Creates a new user in the system.
  
==URL ==
+
== Request ==
http[s]://<host>:<port>/admin/ws/t/<tenant_url>/user
+
=== URL ===
 +
http[s]://<host>/admin/ws/t/<tenant_url>/user
  
== Method ==
+
=== HTTP Method ===
 
POST
 
POST
  
== Request Payload ==
+
== Response ==
{|border="1" style="border-collapse:collapse" cellpadding="5"
+
{
|
+
  "loginId": "test008",  
{
+
  "password": "top secret",
"loginId": "test008",  
+
  "firstName": "test",
"password": "top secret",
+
  "lastName": "008",
"firstName": "test",
+
  "team": "Maintenance Renewal",
"lastName": "008",
+
                   
"team": "Maintenance Renewal",
+
  "extension": "2072",
                   
+
  "workPhone": "123456",
"extension": "2072",
+
  "mobilePhone": "78910",
"workPhone": "123456",
+
  "email": "test008@nowhere.net",
"mobilePhone": "78910",
+
  "disabled": false,
"email": "test008@nowhere.net",
+
  "changePassword": true,
"disabled": false,
+
  "skills": {
"changePassword": true,
+
  "Maintenance Renewal": 100,
"skills": {
+
  "English": 33
  "Maintenance Renewal": 100,
+
  },
  "English": 33
+
  "roles": [
},
+
  "Agent",
"roles": [
+
  "Supervisor"
  "Agent",
+
  ]
  "Supervisor"
+
}  
]
+
 
}  
 
|}
 
  
  
  
 
</translate>
 
</translate>

Latest revision as of 23:50, 13 November 2018

• 3.16 • 3.17 • 3.18

Create User

Creates a new user in the system.

Request

URL

http[s]://<host>/admin/ws/t/<tenant_url>/user

HTTP Method

POST

Response

{
 "loginId": "test008", 
 "password": "top secret",
 "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"
 ]
} 


< Previous | Next >