cURL
curl --request POST \ --url https://api.example.com/professionals \ --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 } '
{ "201": {}, "400": {}, "401": {}, "403": {}, "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\-\+]*$/
Show properties
{ "errors": [ { "msg": "El nombre es obligatorio", "param": "name", "location": "body" } ] }
curl -X POST "https://api.clinicavitalis.com/professionals" \ -H "Authorization: Bearer YOUR_JWT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Juan", "surname": "Pérez", "dni": "12345678", "birthdate": "1985-03-15", "gender": "Masculino", "address": "Av. Corrientes 1234, Buenos Aires", "phone": "+54 11 1234-5678", "email": "juan.perez@clinicavitalis.com", "specialityID": 1 }'
{ "professional": { "id": 1, "name": "Juan", "surname": "Pérez", "dni": 12345678, "birthdate": "1985-03-15T00:00:00.000Z", "gender": "Masculino", "address": "Av. Corrientes 1234, Buenos Aires", "phone": "+54 11 1234-5678", "email": "juan.perez@clinicavitalis.com", "specialityID": 1, "state": "Activo/a" } }