PUT api/Patients/Put

Request Information

URI Parameters

None.

Body Parameters

Patient
NameDescriptionTypeAdditional information
Name

string

String length: inclusive between 0 and 50

LastName

string

String length: inclusive between 0 and 50

MotherLastName

string

String length: inclusive between 0 and 50

Birthdate

date

None.

Gender

string

String length: inclusive between 0 and 50

Phone

string

None.

user_id

integer

None.

Email

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "LastName": "sample string 2",
  "MotherLastName": "sample string 3",
  "Birthdate": "2025-10-27T07:43:55.6809453-07:00",
  "Gender": "sample string 5",
  "Phone": "sample string 6",
  "user_id": 7,
  "Email": "sample string 8"
}

application/xml, text/xml

Sample:
<Patient xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MedicalSoftware.Service">
  <Birthdate>2025-10-27T07:43:55.6809453-07:00</Birthdate>
  <Email>sample string 8</Email>
  <Gender>sample string 5</Gender>
  <LastName>sample string 2</LastName>
  <MotherLastName>sample string 3</MotherLastName>
  <Name>sample string 1</Name>
  <Phone>sample string 6</Phone>
  <user_id>7</user_id>
</Patient>

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 'Patient'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Result

Result

None.

Data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": 0,
  "Data": "sample string 1"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MedicalSoftware.Data">
  <Data>sample string 1</Data>
  <Result>OK</Result>
</Response>