POST api/MedicationHistories

Request Information

URI Parameters

None.

Body Parameters

MedicationHistory
NameDescriptionTypeAdditional information
Id

integer

None.

OwnerId

integer

None.

FarmId

integer

None.

BatchInfoId

integer

None.

Topics

string

None.

Comment

string

None.

ReportingAt

date

None.

FollowupBy

integer

None.

DoctorFeedback

integer

None.

FarmerFeedback

integer

None.

ClossingRequestSent

boolean

None.

ClossingRequestReceived

boolean

None.

ActiveStatus

boolean

None.

CreatedAt

date

None.

UpdatedAt

date

None.

DeletedAt

date

None.

DeletedBy

integer

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

DeletedStatus

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "OwnerId": 2,
  "FarmId": 3,
  "BatchInfoId": 4,
  "Topics": "sample string 5",
  "Comment": "sample string 6",
  "ReportingAt": "2025-12-06T10:21:51.4074324+06:00",
  "FollowupBy": 8,
  "DoctorFeedback": 9,
  "FarmerFeedback": 10,
  "ClossingRequestSent": true,
  "ClossingRequestReceived": true,
  "ActiveStatus": true,
  "CreatedAt": "2025-12-06T10:21:51.4074324+06:00",
  "UpdatedAt": "2025-12-06T10:21:51.4074324+06:00",
  "DeletedAt": "2025-12-06T10:21:51.4074324+06:00",
  "DeletedBy": 16,
  "CreatedBy": 17,
  "UpdatedBy": 18,
  "DeletedStatus": true
}

application/xml, text/xml

Sample:
<MedicationHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.Models">
  <ActiveStatus>true</ActiveStatus>
  <BatchInfoId>4</BatchInfoId>
  <ClossingRequestReceived>true</ClossingRequestReceived>
  <ClossingRequestSent>true</ClossingRequestSent>
  <Comment>sample string 6</Comment>
  <CreatedAt>2025-12-06T10:21:51.4074324+06:00</CreatedAt>
  <CreatedBy>17</CreatedBy>
  <DeletedAt>2025-12-06T10:21:51.4074324+06:00</DeletedAt>
  <DeletedBy>16</DeletedBy>
  <DeletedStatus>true</DeletedStatus>
  <DoctorFeedback>9</DoctorFeedback>
  <FarmId>3</FarmId>
  <FarmerFeedback>10</FarmerFeedback>
  <FollowupBy>8</FollowupBy>
  <Id>1</Id>
  <OwnerId>2</OwnerId>
  <ReportingAt>2025-12-06T10:21:51.4074324+06:00</ReportingAt>
  <Topics>sample string 5</Topics>
  <UpdatedAt>2025-12-06T10:21:51.4074324+06:00</UpdatedAt>
  <UpdatedBy>18</UpdatedBy>
</MedicationHistory>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.