cURL
curl --request PATCH \ --url https://api.example.com/professionals/:id \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "surname": "<string>", "dni": "<string>", "birthdate": "<string>", "gender": "<string>", "address": "<string>", "phone": "<string>", "email": "<string>", "specialityID": 123, "state": "<string>" } '
{ "200": {}, "400": {}, "401": {}, "403": {}, "404": {}, "500": {}, "professional": { "id": 123, "name": "<string>", "surname": "<string>", "dni": 123, "birthdate": "<string>", "gender": "<string>", "address": "<string>", "phone": "<string>", "email": "<string>", "specialityID": 123, "state": "<string>" } }
/^[0-9\s\-\+]*$/
Activo/a
Inactivo/a
Licencia
Show properties
{ "errors": [ { "msg": "El nombre es obligatorio", "param": "name", "location": "body" } ] }
curl -X PATCH "https://api.clinicavitalis.com/professionals/1" \ -H "Authorization: Bearer YOUR_JWT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Juan", "surname": "Pérez García", "dni": "12345678", "birthdate": "1985-03-15", "gender": "Masculino", "address": "Av. Corrientes 5678, Buenos Aires", "phone": "+54 11 9876-5432", "email": "[email protected]", "specialityID": 1, "state": "Activo/a" }'
{ "professional": { "id": 1, "name": "Juan", "surname": "Pérez García", "dni": 12345678, "birthdate": "1985-03-15T00:00:00.000Z", "gender": "Masculino", "address": "Av. Corrientes 5678, Buenos Aires", "phone": "+54 11 9876-5432", "email": "[email protected]", "specialityID": 1, "state": "Activo/a" } }
{ "msg": "Debe enviar un ID y debe ser numérico" }
{ "msg": "El profesional no está cargado en el sistema" }