POST api/HospitalDays

Request Information

URI Parameters

None.

Body Parameters

HospitalDay
NameDescriptionTypeAdditional information
HospitalDayId

integer

None.

HospitalAdmissionId

integer

None.

ModifiedBy

string

None.

Comment

string

None.

EntryDate

date

None.

HospitalDayDate

date

None.

PracticeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "HospitalDayId": 1,
  "HospitalAdmissionId": 2,
  "ModifiedBy": "sample string 3",
  "Comment": "sample string 4",
  "EntryDate": "2024-12-21T05:34:53.0930035+00:00",
  "HospitalDayDate": "2024-12-21T05:34:53.0930035+00:00",
  "PracticeId": 5
}

text/html

Sample:
{"HospitalDayId":1,"HospitalAdmissionId":2,"ModifiedBy":"sample string 3","Comment":"sample string 4","EntryDate":"2024-12-21T05:34:53.0930035+00:00","HospitalDayDate":"2024-12-21T05:34:53.0930035+00:00","PracticeId":5}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VetAPI.DataModel.HospitalDayLab' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VetAPI.DataModel.HospitalDayLab' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

HospitalDay
NameDescriptionTypeAdditional information
HospitalDayId

integer

None.

HospitalAdmissionId

integer

None.

ModifiedBy

string

None.

Comment

string

None.

EntryDate

date

None.

HospitalDayDate

date

None.

PracticeId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "HospitalDayId": 1,
  "HospitalAdmissionId": 2,
  "ModifiedBy": "sample string 3",
  "Comment": "sample string 4",
  "EntryDate": "2024-12-21T05:34:53.2191627+00:00",
  "HospitalDayDate": "2024-12-21T05:34:53.2191627+00:00",
  "PracticeId": 5
}

text/html

Sample:
{"HospitalDayId":1,"HospitalAdmissionId":2,"ModifiedBy":"sample string 3","Comment":"sample string 4","EntryDate":"2024-12-21T05:34:53.2191627+00:00","HospitalDayDate":"2024-12-21T05:34:53.2191627+00:00","PracticeId":5}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VetAPI.DataModel.HospitalDayLab' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VetAPI.DataModel.HospitalDayLab' contains cycles and cannot be serialized if reference tracking is disabled.