Skip to main content
POST
Create

Authorizations

Authorization
string
header
required

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

Body

application/json
email
string<email>
required

Email do novo usuario, usado como identificador de login.

Example:

"ana.souza@dommed.com.br"

password
string
required

Senha em texto plano; e hasheada antes de ser persistida.

Minimum string length: 1
Example:

"S3nhaForte!23"

role
enum<string>
required

Papel do usuario no Hub: admin tem acesso administrativo total, employee tem acesso operacional restrito.

Available options:
admin,
employee
Example:

"employee"

Response

Successful Response

id
string<uuid>
required

Identificador unico do recurso recem-criado.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"