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

Name Description
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:

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

If you find a mistake in the text, please select it and press Ctrl+Enter.