curl -X PUT https://api.medagenda.com/consultations/update \
-H "Content-Type: application/json" \
-d '{
"consultationId": "550e8400-e29b-41d4-a716-446655440000",
"dateTime": "2024-03-20T15:00:00",
"observation": "Rescheduled - Patient requested later time slot"
}'
{
"consultationId": "550e8400-e29b-41d4-a716-446655440000",
"dateTime": "2024-03-20T15:00:00",
"duracaoMinutos": 60,
"patient": {
"cpf": "12345678901",
"name": "João Silva",
"email": "[email protected]",
"dateOfBirth": "1985-06-15",
"address": "Rua das Flores, 123, São Paulo, SP",
"medicalHistory": "Hypertension, controlled with medication"
},
"doctor": {
"crm": "123456SP",
"name": "Dr. Maria Santos",
"email": "[email protected]",
"specialty": "Cardiologia",
"telephone": "+5511987654321",
"consultationValue": 350.00
},
"isUrgent": false,
"observation": "Rescheduled - Patient requested later time slot"
}
Update the date/time and observation of an existing consultation
curl -X PUT https://api.medagenda.com/consultations/update \
-H "Content-Type: application/json" \
-d '{
"consultationId": "550e8400-e29b-41d4-a716-446655440000",
"dateTime": "2024-03-20T15:00:00",
"observation": "Rescheduled - Patient requested later time slot"
}'
{
"consultationId": "550e8400-e29b-41d4-a716-446655440000",
"dateTime": "2024-03-20T15:00:00",
"duracaoMinutos": 60,
"patient": {
"cpf": "12345678901",
"name": "João Silva",
"email": "[email protected]",
"dateOfBirth": "1985-06-15",
"address": "Rua das Flores, 123, São Paulo, SP",
"medicalHistory": "Hypertension, controlled with medication"
},
"doctor": {
"crm": "123456SP",
"name": "Dr. Maria Santos",
"email": "[email protected]",
"specialty": "Cardiologia",
"telephone": "+5511987654321",
"consultationValue": 350.00
},
"isUrgent": false,
"observation": "Rescheduled - Patient requested later time slot"
}
dateTime and observation fields. Patient and doctor assignments cannot be changed through this endpoint.
patient, doctor, isUrgent, and duracaoMinutos fields cannot be modified through this endpoint. Only dateTime and observation can be updated.curl -X PUT https://api.medagenda.com/consultations/update \
-H "Content-Type: application/json" \
-d '{
"consultationId": "550e8400-e29b-41d4-a716-446655440000",
"dateTime": "2024-03-20T15:00:00",
"observation": "Rescheduled - Patient requested later time slot"
}'
{
"consultationId": "550e8400-e29b-41d4-a716-446655440000",
"dateTime": "2024-03-20T15:00:00",
"duracaoMinutos": 60,
"patient": {
"cpf": "12345678901",
"name": "João Silva",
"email": "[email protected]",
"dateOfBirth": "1985-06-15",
"address": "Rua das Flores, 123, São Paulo, SP",
"medicalHistory": "Hypertension, controlled with medication"
},
"doctor": {
"crm": "123456SP",
"name": "Dr. Maria Santos",
"email": "[email protected]",
"specialty": "Cardiologia",
"telephone": "+5511987654321",
"consultationValue": 350.00
},
"isUrgent": false,
"observation": "Rescheduled - Patient requested later time slot"
}