PUT api/Prescriptions?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Prescription
NameDescriptionTypeAdditional information
Id

integer

None.

FarmId

integer

None.

BatchInfoId

integer

None.

MedicationHistory

integer

None.

Disease

string

None.

Suggestion

string

None.

ReportingAt

date

None.

PrescribedBy

integer

None.

ActiveStatus

boolean

None.

BuyStatus

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,
  "FarmId": 2,
  "BatchInfoId": 3,
  "MedicationHistory": 4,
  "Disease": "sample string 5",
  "Suggestion": "sample string 6",
  "ReportingAt": "2025-12-06T10:21:50.9536974+06:00",
  "PrescribedBy": 8,
  "ActiveStatus": true,
  "BuyStatus": true,
  "CreatedAt": "2025-12-06T10:21:50.9536974+06:00",
  "UpdatedAt": "2025-12-06T10:21:50.9536974+06:00",
  "DeletedAt": "2025-12-06T10:21:50.9536974+06:00",
  "DeletedBy": 13,
  "CreatedBy": 14,
  "UpdatedBy": 15,
  "DeletedStatus": true
}

application/xml, text/xml

Sample:
<Prescription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.Models">
  <ActiveStatus>true</ActiveStatus>
  <BatchInfoId>3</BatchInfoId>
  <BuyStatus>true</BuyStatus>
  <CreatedAt>2025-12-06T10:21:50.9536974+06:00</CreatedAt>
  <CreatedBy>14</CreatedBy>
  <DeletedAt>2025-12-06T10:21:50.9536974+06:00</DeletedAt>
  <DeletedBy>13</DeletedBy>
  <DeletedStatus>true</DeletedStatus>
  <Disease>sample string 5</Disease>
  <FarmId>2</FarmId>
  <Id>1</Id>
  <MedicationHistory>4</MedicationHistory>
  <PrescribedBy>8</PrescribedBy>
  <ReportingAt>2025-12-06T10:21:50.9536974+06:00</ReportingAt>
  <Suggestion>sample string 6</Suggestion>
  <UpdatedAt>2025-12-06T10:21:50.9536974+06:00</UpdatedAt>
  <UpdatedBy>15</UpdatedBy>
</Prescription>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Prescription
NameDescriptionTypeAdditional information
Id

integer

None.

FarmId

integer

None.

BatchInfoId

integer

None.

MedicationHistory

integer

None.

Disease

string

None.

Suggestion

string

None.

ReportingAt

date

None.

PrescribedBy

integer

None.

ActiveStatus

boolean

None.

BuyStatus

boolean

None.

CreatedAt

date

None.

UpdatedAt

date

None.

DeletedAt

date

None.

DeletedBy

integer

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

DeletedStatus

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FarmId": 2,
  "BatchInfoId": 3,
  "MedicationHistory": 4,
  "Disease": "sample string 5",
  "Suggestion": "sample string 6",
  "ReportingAt": "2025-12-06T10:21:50.9536974+06:00",
  "PrescribedBy": 8,
  "ActiveStatus": true,
  "BuyStatus": true,
  "CreatedAt": "2025-12-06T10:21:50.9536974+06:00",
  "UpdatedAt": "2025-12-06T10:21:50.9536974+06:00",
  "DeletedAt": "2025-12-06T10:21:50.9536974+06:00",
  "DeletedBy": 13,
  "CreatedBy": 14,
  "UpdatedBy": 15,
  "DeletedStatus": true
}

application/xml, text/xml

Sample:
<Prescription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.Models">
  <ActiveStatus>true</ActiveStatus>
  <BatchInfoId>3</BatchInfoId>
  <BuyStatus>true</BuyStatus>
  <CreatedAt>2025-12-06T10:21:50.9536974+06:00</CreatedAt>
  <CreatedBy>14</CreatedBy>
  <DeletedAt>2025-12-06T10:21:50.9536974+06:00</DeletedAt>
  <DeletedBy>13</DeletedBy>
  <DeletedStatus>true</DeletedStatus>
  <Disease>sample string 5</Disease>
  <FarmId>2</FarmId>
  <Id>1</Id>
  <MedicationHistory>4</MedicationHistory>
  <PrescribedBy>8</PrescribedBy>
  <ReportingAt>2025-12-06T10:21:50.9536974+06:00</ReportingAt>
  <Suggestion>sample string 6</Suggestion>
  <UpdatedAt>2025-12-06T10:21:50.9536974+06:00</UpdatedAt>
  <UpdatedBy>15</UpdatedBy>
</Prescription>