PUT api/DamageHistories?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

DamageHistory
NameDescriptionTypeAdditional information
Id

integer

None.

ProductId

integer

None.

DamageCauseId

integer

None.

DamagedAt

date

None.

Quantity

decimal number

None.

BatchInfoId

integer

None.

BuyHistoryId

integer

None.

ProductStorageHistoryId

integer

None.

FarmId

integer

None.

CreatedAt

date

None.

UpdatedAt

date

None.

DeletedAt

date

None.

DeletedBy

integer

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

DeletedStatus

boolean

None.

DamageHistoryPictures

Collection of DamageHistoryPicture

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductId": 2,
  "DamageCauseId": 3,
  "DamagedAt": "2025-12-06T10:22:18.2570936+06:00",
  "Quantity": 5.0,
  "BatchInfoId": 6,
  "BuyHistoryId": 7,
  "ProductStorageHistoryId": 8,
  "FarmId": 9,
  "CreatedAt": "2025-12-06T10:22:18.2570936+06:00",
  "UpdatedAt": "2025-12-06T10:22:18.2570936+06:00",
  "DeletedAt": "2025-12-06T10:22:18.2570936+06:00",
  "DeletedBy": 12,
  "CreatedBy": 13,
  "UpdatedBy": 14,
  "DeletedStatus": true,
  "DamageHistoryPictures": [
    {
      "Id": 1,
      "DamageHistoryId": 1,
      "PictureUrl": "sample string 2",
      "IsActive": true
    },
    {
      "Id": 1,
      "DamageHistoryId": 1,
      "PictureUrl": "sample string 2",
      "IsActive": true
    }
  ]
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

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.