You can add a user with a POST request to the following URL: /user.
|X-Auth-Account-Url (required)||Base URL of the account, e.g. http://myaccount.ispringlearn.com|
|X-Auth-Email (required)||Administrator/Publisher e-mail address.|
|X-Auth-Password (required)||Administrator/Publisher password.|
|X-Email (required)||E-mail address of the added user.|
|X-Password (optional)||Password for the added user. If it's not specified, the password will be generated automatically.|
|X-Send-Login-Email (optional, default: 1)||1 - send an e-mail to the added user.|
0 - do not send an e-mail to the added user.
|X-Invitation-Message (optional)||Text of an invitation message that will be added to the e-mail.|
|X-Groups (optional)||Comma-separated list of group IDs, to which a user will be added.|
When a request is processed successfully, the system returns code 201. Reponse body will contain ID of the added user. The response may include the X-Exceeded-Groups header with a comma-separated list of group IDs, to which a user cannot be added.
Possible Response Codes
|409||Duplicated email||A user with the specified e-mail address already exists.|
|403||Number of user accounts is exceeded||A user hasn't been added, because the number of user accounts supported by your subscription plan has been exceeded.|
|201||Created||A new user has been added.|
POST /user HTTP/1.1
HTTP/1.1 201 Created