NAV

addUser

POST /v2/user/add

Use this API call to add a new user to a particular company. Note, that only users with the roles of manager, customer care and accounting can be added with this call. A user with the role of an account owner is created using the addCompancall as part of the Company partner controller.

Parameters
Name
Description
userAddUpdate (required)

This model allows you to specify all parameters required for the creation of the user under a particular company. For more details follow the body schema as described in the details of this call.

send_email boolean (required)

This parameter allows you to specify if you would like to send an activation email to this user.

Response Messages
Code
Description
200
OK
201
Created
401
Unauthorized
403
Forbidden
404
Not Found
             {
    "email": "string",
    "first_name": "string",
    "last_name": "string",
    "logo": "string",
    "password": "string",
    "phone": "string",
    "role": "ACCOUNT_OWNER",
    "state": "ACTIVE",
    "user_code": "string"
}
             
          
{ } UserAddUpdateV2Model
email (optional) string
first_name (optional) string
last_name (optional) string
logo (optional) string
password (optional) string
phone (optional) string
role (optional) string
state (optional) string
user_code (optional) string
             <user_add_update_model>
  <email>string</email>
  <first_name>string</first_name>
  <last_name>string</last_name>
  <logo>string</logo>
  <password>string</password>
  <phone>string</phone>
  <role>ACCOUNT_OWNER</role>
  <state>ACTIVE</state>
  <user_code>string</user_code>
</user_add_update_model>

             
          
{ } UserAddUpdateV2Model
email (optional) string
first_name (optional) string
last_name (optional) string
logo (optional) string
password (optional) string
phone (optional) string
role (optional) string
state (optional) string
user_code (optional) string