POST api/Production/Update
Request Information
URI Parameters
None.
Body Parameters
ProductionUpdateDtoName | Description | Type | Additional information |
---|---|---|---|
ProductionDate | date |
None. |
|
Description | string |
None. |
|
Amount | decimal number |
None. |
|
Quantity | decimal number |
None. |
|
WarehouseID | globally unique identifier |
None. |
|
ProductID | globally unique identifier |
None. |
|
UnitID | globally unique identifier |
None. |
|
ProductionDetails | Collection of ProductionDetailUpdateDto |
None. |
|
ID | globally unique identifier |
Required |
|
CompanyID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "productionDate": "2025-05-24T14:48:53.385661+03:00", "description": "sample string 2", "amount": 3.0, "quantity": 4.1, "warehouseID": "73a75ec6-06c8-4756-979e-605a7b43f578", "productID": "e280ae3d-f4f7-4db1-ac48-b7df7edbbc10", "unitID": "62c47850-e977-4844-b52a-d6524fb8312a", "productionDetails": [ { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "b437034e-3031-46b8-8373-ebf63c9a7402", "warehouseID": "2873b040-e217-44e9-a5a0-486399f2ebab", "productionID": "09facab3-259b-4895-811e-1b577f94cb5c", "id": "893ea6fe-602d-44f2-848c-27d1780903d0", "companyID": "a54094e3-b321-4d91-9759-f37e9a871a2e" }, { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "b437034e-3031-46b8-8373-ebf63c9a7402", "warehouseID": "2873b040-e217-44e9-a5a0-486399f2ebab", "productionID": "09facab3-259b-4895-811e-1b577f94cb5c", "id": "893ea6fe-602d-44f2-848c-27d1780903d0", "companyID": "a54094e3-b321-4d91-9759-f37e9a871a2e" } ], "id": "21243683-5bce-42bf-a378-47ea20175a82", "companyID": "1411c1f6-5254-47b4-ae7a-d27c55c24cc2" }
application/xml, text/xml
Sample:
<ProductionUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <CompanyID>1411c1f6-5254-47b4-ae7a-d27c55c24cc2</CompanyID> <ID>21243683-5bce-42bf-a378-47ea20175a82</ID> <Amount>3</Amount> <Description>sample string 2</Description> <ProductID>e280ae3d-f4f7-4db1-ac48-b7df7edbbc10</ProductID> <ProductionDate>2025-05-24T14:48:53.385661+03:00</ProductionDate> <ProductionDetails> <ProductionDetailUpdateDto> <CompanyID>a54094e3-b321-4d91-9759-f37e9a871a2e</CompanyID> <ID>893ea6fe-602d-44f2-848c-27d1780903d0</ID> <Amount>4</Amount> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>b437034e-3031-46b8-8373-ebf63c9a7402</ProductID> <ProductionID>09facab3-259b-4895-811e-1b577f94cb5c</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>2873b040-e217-44e9-a5a0-486399f2ebab</WarehouseID> </ProductionDetailUpdateDto> <ProductionDetailUpdateDto> <CompanyID>a54094e3-b321-4d91-9759-f37e9a871a2e</CompanyID> <ID>893ea6fe-602d-44f2-848c-27d1780903d0</ID> <Amount>4</Amount> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>b437034e-3031-46b8-8373-ebf63c9a7402</ProductID> <ProductionID>09facab3-259b-4895-811e-1b577f94cb5c</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>2873b040-e217-44e9-a5a0-486399f2ebab</WarehouseID> </ProductionDetailUpdateDto> </ProductionDetails> <Quantity>4.1</Quantity> <UnitID>62c47850-e977-4844-b52a-d6524fb8312a</UnitID> <WarehouseID>73a75ec6-06c8-4756-979e-605a7b43f578</WarehouseID> </ProductionUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"productionDate":"2025-05-24T14:48:53.385661+03:00","description":"sample string 2","amount":3.0,"quantity":4.1,"warehouseID":"73a75ec6-06c8-4756-979e-605a7b43f578","productID":"e280ae3d-f4f7-4db1-ac48-b7df7edbbc10","unitID":"62c47850-e977-4844-b52a-d6524fb8312a","productionDetails":[{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"b437034e-3031-46b8-8373-ebf63c9a7402","warehouseID":"2873b040-e217-44e9-a5a0-486399f2ebab","productionID":"09facab3-259b-4895-811e-1b577f94cb5c","id":"893ea6fe-602d-44f2-848c-27d1780903d0","companyID":"a54094e3-b321-4d91-9759-f37e9a871a2e"},{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"b437034e-3031-46b8-8373-ebf63c9a7402","warehouseID":"2873b040-e217-44e9-a5a0-486399f2ebab","productionID":"09facab3-259b-4895-811e-1b577f94cb5c","id":"893ea6fe-602d-44f2-848c-27d1780903d0","companyID":"a54094e3-b321-4d91-9759-f37e9a871a2e"}],"id":"21243683-5bce-42bf-a378-47ea20175a82","companyID":"1411c1f6-5254-47b4-ae7a-d27c55c24cc2"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.