Skip to main content
POST
/
admin-service
/
users
/
doctor
cURL
curl --request POST \
  --url http://localhost:8081/admin-service/users/doctor \
  --header 'Content-Type: application/json' \
  --header 'origin: <origin>' \
  --data '
{
  "firstName": "<string>",
  "lastName": "<string>",
  "document": "<string>",
  "profiles": [
    {
      "documentDoctor": "<string>",
      "documentDoctorUpdatedAt": "2023-12-25",
      "specialties": [
        "<string>"
      ]
    }
  ],
  "auth": {
    "type": "USERPASS",
    "email": "<string>",
    "password": "<string>",
    "token": "<string>"
  },
  "birthDate": "2023-12-25",
  "gender": "FEMININE"
}
'
{
  "firstName": "<string>",
  "lastName": "<string>",
  "gender": "FEMININE",
  "document": "<string>",
  "birthDate": "2023-12-25",
  "dialingCode": "<string>",
  "phone": "<string>",
  "enabled": true,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "email": "<string>",
  "profiles": [
    {
      "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "approvalStatus": "ANALYSING",
      "documentDoctor": "<string>",
      "documentDoctorUpdatedAt": "2023-12-25",
      "type": "DOCTOR_GENERALIST",
      "enabled": true,
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "specialties": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "userProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "specialtyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "enabled": true,
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z"
        }
      ]
    }
  ],
  "auth": [
    {
      "type": "USERPASS",
      "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "externalAuthId": "<string>",
      "email": "<string>"
    }
  ],
  "ratings": "<array>",
  "unities": "<array>",
  "institutions": "<array>"
}

Headers

origin
string
required

Body

application/json
firstName
string
required
lastName
string
required
document
string
required
profiles
object[]
required
auth
object
required
birthDate
string<date>
gender
enum<string>
Available options:
FEMININE,
MASCULINE

Response

200 - */*

OK

firstName
string
lastName
string
gender
enum<string>
Available options:
FEMININE,
MASCULINE
document
string
birthDate
string<date>
dialingCode
string
phone
string
enabled
boolean
id
string<uuid>
createdAt
string<date-time>
updatedAt
string<date-time>
email
string
profiles
object[]
auth
object[]
ratings
array
unities
array
institutions
array