Skip to main content
PUT
/
profissionais
/
{user_id}
curl -X PUT https://api.vidaplus.com/profissionais/1 \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "nome": "Maria Oliveira Santos",
    "email": "[email protected]",
    "senha": "newpassword123",
    "telefone": "456789999",
    "crmCoren": "CRM-PR 67890",
    "especialidade": "Dermatologia",
    "horario_atendimento": "Tarde (13:00 - 18:00)",
    "biografia": "Médica com 15 anos de experiência em dermatologia",
    "tipo": "PROFISSIONAL",
    "is_active": true,
    "is_superuser": false
  }'
{
  "id": 1,
  "nome": "Maria Oliveira Santos",
  "email": "[email protected]",
  "telefone": "456789999",
  "crmCoren": "CRM-PR 67890",
  "especialidade": "Dermatologia",
  "horario_atendimento": "Tarde (13:00 - 18:00)",
  "biografia": "Médica com 15 anos de experiência em dermatologia",
  "tipo": "PROFISSIONAL",
  "is_active": true,
  "is_superuser": false
}
Updates all fields of an existing professional user. This is a full update operation that requires all fields to be provided.

Authentication

Requires a valid JWT token in the Authorization header.

Permissions

  • Superusers: Can update any professional profile
  • Regular users: Can only update their own profile
  • Returns 403 Forbidden if a non-superuser tries to update another user’s profile

Path Parameters

user_id
integer
required
The unique identifier of the professional user to updateExample: 1

Request Body

nome
string
required
Full name of the professionalExample: "Maria Oliveira"
email
string
required
Email address (must be unique)Example: "[email protected]"
senha
string
required
Password for the professional account (will be hashed)Example: "maria123"
telefone
string
required
Contact phone numberExample: "456789123"
crmCoren
string
required
CRM/COREN registration number (must be unique)Example: "CRM-PR 67890"
especialidade
string
required
Medical specialty or area of expertiseAllowed values:
  • "Clinica Geral"
  • "Dermatologia"
  • "Ginecologia"
  • "Ortopedia"
  • "Pediatria"
  • "Psiquiatria"
  • "Psicologia"
  • "Nutrição"
  • "Fisioterapia"
  • "Odontologia"
horario_atendimento
string
required
Working hours scheduleAllowed values:
  • "Manhã (08:00 - 12:00)"
  • "Tarde (13:00 - 18:00)"
  • "Noite (18:00 - 22:00)"
  • "Integral (08:00 - 22:00)"
  • "Plantão (12h)"
  • "Plantão (24h)"
biografia
string
required
Professional biography or descriptionExample: "Médica com 10 anos de experiência"
tipo
string
required
User type (must be "PROFISSIONAL" for professional users)Example: "PROFISSIONAL"
is_active
boolean
required
Whether the professional account is activeExample: true
is_superuser
boolean
required
Whether the professional has superuser/admin privilegesExample: false

Response

id
integer
Unique identifier for the professional
nome
string
Full name of the professional
email
string
Email address
telefone
string
Contact phone number
crmCoren
string
CRM/COREN registration number
especialidade
string
Medical specialty
horario_atendimento
string
Working hours schedule
biografia
string
Professional biography
tipo
string
User type ("PROFISSIONAL")
is_active
boolean
Account active status
is_superuser
boolean
Superuser status
curl -X PUT https://api.vidaplus.com/profissionais/1 \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "nome": "Maria Oliveira Santos",
    "email": "[email protected]",
    "senha": "newpassword123",
    "telefone": "456789999",
    "crmCoren": "CRM-PR 67890",
    "especialidade": "Dermatologia",
    "horario_atendimento": "Tarde (13:00 - 18:00)",
    "biografia": "Médica com 15 anos de experiência em dermatologia",
    "tipo": "PROFISSIONAL",
    "is_active": true,
    "is_superuser": false
  }'
{
  "id": 1,
  "nome": "Maria Oliveira Santos",
  "email": "[email protected]",
  "telefone": "456789999",
  "crmCoren": "CRM-PR 67890",
  "especialidade": "Dermatologia",
  "horario_atendimento": "Tarde (13:00 - 18:00)",
  "biografia": "Médica com 15 anos de experiência em dermatologia",
  "tipo": "PROFISSIONAL",
  "is_active": true,
  "is_superuser": false
}

Error Codes

Status CodeDescription
200Professional updated successfully
401Authentication required
403User does not have permission to update this profile
404Professional user not found
409Email or CRM/COREN already exists for another user

Build docs developers (and LLMs) love