This method creates a new user and assigns it to the specified unitId. sendUserPassEmail is boolean type and determines if user password will send by email.
| Name | Value | |
|---|---|---|
| REST-API METHOD | CREATE USER BY UNITID | |
| HTTP METHOD | POST | |
| RESPONSE TYPE | XML | |
| URL | https://api.csm.next4biz.net/services/UserService/{CompanyID}/createuserbyunitId.json/{name}/{surname}/{email}/{userName}/{personelNo}/{unitID}/{sendUserPassByEmail}/{LangID} | https://api.csm.next4biz.net/services/UserService/{CompanyID}/createuserbyunitId.xml/{name}/{surname}/{email}/{userName}/{personelNo}/{unitID}/{sendUserPassByEmail}/{LangID} |
| REQUEST HEAD | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+json,application/json;q=0.9,*/*;q=0.8 Content-Type: application/json | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml |
<Response
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Message>{Message}</Message>
<Result>true</Result>
</Response>
{
"Message": "{Message}",
"Result": "true"
}