Skip to main content
POST
Create a new company member

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

email
string<email>
required

The email address of the user.

username
string
required

The username of the user. This value may contain only letters, numbers, and @/./+/-/_ characters.

Pattern: ^[\w.@+-]+$
first_name
string

The first name of the user.

last_name
string

The last name of the user.

company_id
integer | null

The unique identifier of the company.

groups
integer[]

List of user group IDs to assign the user to.

roles
integer[]

List of role IDs to assign to the user.

account_expiration_date
string<date-time>

The account expiration date and time with timezone.

language
enum<string>

The preferred language of the user.

  • ar - Arabic
  • en - English
  • fr - French
  • de - German
Available options:
ar,
en,
fr,
de
is_active
boolean
default:false

Whether the user should be created as active. Defaults to False.

Response

Company member created successfully

id
integer
required
username
string
required
first_name
string
required
last_name
string
required
email
string
required
is_active
boolean
required
date_joined
string<date-time>
required
account_expiration_date
string<date-time>
required
last_login
string<date-time>
required
invitation_status
string
required
language
string
required
company
object
required
roles
object[]
required
groups
object[]
required