create_user

The create_user function is used to create users.

Copied!
svc=core/create_user&params={"creatorId":<long>,
			     "name":"<text>",
			     "password":"<text>",
			     "dataFlags":<uint>}

Parameters

NameDescription

creatorId

The ID of the user that should be the new user's creator.

name

The name of the new user (4–50 characters).

password

The password of the new user. 

dataFlags

Flags with the user properties for the returned result (see the user page).

Returned result

Copied!
{
	"item":{	/* user created */
		...	
	},
	"flags":<uint>	/* applied flags with properties */
}

The format of the item parameter is described on the user page.

Possible error codes:

CodeDescription
1002The user with this name already exists.
7The creator is a top account user or failed to check the create_users billing transaction. 
6Failed to fetch the creator or failed to create user.  
4

Wrong input parameters.

Download PDF file
Download Word document

See also