Saltar al contenido principal
POST
/
api
/
v1
/
users
/
invite
curl --request POST \
  --url https://www.manglai.io/api/v1/users/invite \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "businessManager@manglai.io",
  "companyId": "094cba11-9f25-4fc6-8398-c7d0c49a18b9",
  "roles": [
    "ROLE_OWNER"
  ]
}
'

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
roles
enum<string>[]
requerido

Roles of the user. The possible values are:

  • ROLE_OWNER # Business manager
  • ROLE_MANAGER # Inventory manager
  • ROLE_VALIDATOR # Validator
  • ROLE_VIEWER # Viewer
Opciones disponibles:
ROLE_OWNER,
ROLE_MANAGER,
ROLE_VALIDATOR,
ROLE_VIEWER
email
string

User email

companyId
string

Company id

Respuesta

200

The user