Skip to main content
POST
/
users
cURL
curl --request POST \
  --url https://api.example.com/users \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "id": "e4b6d4e8-8e6d-41da-abdb-8fc358a9e7f1",
  "name": "Maria Souza",
  "email": "maria@email.com",
  "role": "member",
  "createdAt": "2024-02-15T12:00:00.000Z"
}

Body

name
string
required
Nome completo.
email
string
required
Email que servirá de login.
password
string
required
Senha inicial de acesso do membro.
role
string
default:"member"
Nível de permissão associada (ex: admin, member).

Response

{
  "id": "e4b6d4e8-8e6d-41da-abdb-8fc358a9e7f1",
  "name": "Maria Souza",
  "email": "maria@email.com",
  "role": "member",
  "createdAt": "2024-02-15T12:00:00.000Z"
}

Body

application/json

The body is of type object.

Response

201 - undefined