post
https://public-api.leexi.ai/v1/reseller/companies//users
Create a user in a client company
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Example payload
name, email and team_uuid are required, and the team must belong to the client company. roles defaults to ["member"] and license defaults to the client company's license category.
{
"name": "John Smith",
"email": "[email protected]",
"team_uuid": "5290728d-b3c4-4330-918d-d8f153e9500d",
"roles": ["super_admin"],
"license": "business"
}This endpoint follows the rules a reseller admin gets in Kite, which are looser than Create a user:
- every role can be assigned,
super_adminandsystem_adminincluded; - advanced roles do not require the Governance add-on of the client company;
- when the client company has no active super admin yet, the new user becomes its super admin, whatever
rolessays. The first user you create for a new client is therefore its super admin.
The user is created without a password: they receive a welcome email with a link to set one. Pass "send_welcome_email": false to provision users silently.
An email is unique across Leexi: an address already used in any company answers 409.
Requires thewrite_clientspermission scope on the API key of a reseller account.
A company that is not one of your clients, including your own reseller company, answers404.
401401
402402
429429
