workingDayMaterials

Update a workingDayMaterials record

patch/api/working-day-materials/{id}

Path parameters

idstring uuid required

Request body

workingDayIdstring uuid
materialIdstring uuid
usagenumber double nullable
pricenumber double nullable
unitPricenumber double nullable
totalPricenumber double nullable
photoFileNamesstring[] nullable
mongodbIdstring nullable

Example request

{
  "usage": 25.5,
  "price": 25.5,
  "unitPrice": 25.5,
  "totalPrice": 25.5
}

Response

Default Response

idstring uuid required
workingDayIdstring uuid required
materialIdstring uuid required
companyIdstring uuid required
usagenumber double nullable
pricenumber double nullable
unitPricenumber double nullable
totalPricenumber double nullable
photoFileNamesstring[] nullable required
serverVersioninteger required
createdAtstring date-time
updatedAtstring date-time
deletedAtstring date-time nullable
mongodbIdstring nullable required
namestring
unitstring nullable
defaultUnitPricenumber double

Example response

{
  "usage": 25.5,
  "price": 25.5,
  "unitPrice": 25.5,
  "totalPrice": 25.5,
  "serverVersion": 1,
  "createdAt": "2026-03-26T14:00:00Z",
  "updatedAt": "2026-03-26T14:00:00Z",
  "deletedAt": "2026-03-26T14:00:00Z",
  "defaultUnitPrice": 25.5
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.