POST api/Patients/AddPatient

Request Information

URI Parameters

None.

Body Parameters

CreatePatientDto
NameDescriptionTypeAdditional information
ClientId

integer

Required

LocationId

integer

None.

FirstName

string

Required

String length: inclusive between 0 and 50

MiddleName

string

String length: inclusive between 0 and 50

LastName

string

String length: inclusive between 0 and 50

DateOfBirth

date

Required

Gender

string

Required

String length: inclusive between 0 and 1

EmailAddress

string

String length: inclusive between 0 and 200

ReceiveEmailMarketing

boolean

None.

ReceiveTextMarketing

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": 1,
  "LocationId": 1,
  "FirstName": "sample string 2",
  "MiddleName": "sample string 3",
  "LastName": "sample string 4",
  "DateOfBirth": "2026-04-29T22:08:33.9464862+00:00",
  "Gender": "sample string 6",
  "EmailAddress": "sample string 7",
  "ReceiveEmailMarketing": true,
  "ReceiveTextMarketing": true
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreatePatientDto'.

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
Message

string

None.

Result

Object

None.

StatusCode

integer

None.

StatusGroup

string

None.

Details

Collection of Object

None.

Response Formats

application/json, text/json

Sample:

Sample not available.