Skip to main content

Method adds a new user. User data should be given to this request in the same format as for updating user.

Parameters

No additional parameters

Example

Data posted

https://ws.idibu.com/ws/rest/v1/users/new?hash=[your_hash]
<?xml version="1.0"?>
<idibu>
<profile>
<firstname>John</firstname>
<lastname>Doe</lastname>
<company>Company</company>
<contacts><address>Far away 1234</address>
<address-line1>Far away</address-line1>
<address-line2></address-line2>
<address-line3></address-line3>
<country>Far away</country>
<postcode>7777</postcode>
<email>tescior@tescior.pl</email>
<phone>+777 0 777 77777</phone>
<fax></fax>
<www>www.page.com</www>
</contacts>
</profile>
<auth>
<disabled>No</disabled>
<login>newuser4</login>
<password>somepwd4</password>
</auth>
</idibu>

Response

<?xml version="1.0" encoding="utf8"?>
<idibu generator="idibu" version="1.0">
<response>
<message>User added</message>
<id>1198</id>
</response>
<status>success</status>
</idibu>

Max length for username and password fields is 32 characters. Anything beyond that will be trimmed.