Saltar al contenido principal
POST
/
api
/
v1
/
users
Create User
curl --request POST \
  --url https://www.manglai.io/api/v1/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "companies": [
    {
      "companyId": "<string>"
    }
  ],
  "roles": "ROLE_OWNER",
  "password": "<string>",
  "language": "es",
  "name": "<string>",
  "phone": "<string>",
  "externalId": "<string>"
}
'

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
id
string<uuid>
requerido
companies
object[]
requerido
roles
enum<string>
requerido
Opciones disponibles:
ROLE_OWNER,
ROLE_MANAGER,
ROLE_VALIDATOR,
ROLE_VIEWER
Ejemplo:

"ROLE_OWNER"

password
string
language
string
Ejemplo:

"es"

name
string
phone
string
externalId
string

Respuesta

200

A new user