Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:sidebar:remoteapi:apiref:core:create_user [29/11/2013 12:31]
127.0.0.1 external edit
en:sidebar:remoteapi:apiref:core:create_user [07/04/2014 08:26]
Line 1: Line 1:
-{{indexmenu_n>​5}} 
-====== Create user ====== 
  
-To create a new user, use the command **core/​create_user**: ​ 
-<code javascript>​ 
-svc=core/​create_user&​params={"​creatorId":<​long>,​ 
-      "​name":<​text>,​ 
-      "​password":<​text>,​ 
-      "​dataFlags":<​uint>​} 
-</​code>​ 
- 
-===== Parameters ===== 
-^ Name ^ Description ^ 
-| creatorId | ID of a user who will be assigned a creator for a new user | 
-| name | new user name (at least 4 characters) | 
-| password | new user password | 
-| dataFlags | data flags for the response (see [[../​format/​user|Data format: Users]])| 
- 
-===== Response ===== 
-<code javascript>​ 
-{ 
- "​item":​{ /​* user created */ 
- ...  
- }, 
- "​flags":<​unit>​ /​* applied data flags */ 
-} 
-</​code>​ 
-You can find the format of "​item"​ in the chapter [[../​format/​user|Data format: Users]]. 
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam