PUT 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-24T17:05:40.5098694+03:00", "description": "sample string 2", "amount": 3.0, "quantity": 4.1, "warehouseID": "b064547a-72b9-4ccc-8ec4-4a20c5c3b1d0", "productID": "1e210ca7-47f2-4d94-9d7f-d14046e810af", "unitID": "525d1c45-38e9-4907-aabc-282776619adf", "productionDetails": [ { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "db136afc-8507-4f2e-b507-9bf549225b84", "warehouseID": "8ec8100b-19e9-41b7-8c14-c9cf3e2bc1e6", "productionID": "e5afb3f5-5860-46b4-9dbf-b17181238c27", "id": "80e6b379-7d20-47da-b633-9c14e79cb840", "companyID": "daf274c1-2697-47fe-8fe4-415bceee37d2" }, { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "db136afc-8507-4f2e-b507-9bf549225b84", "warehouseID": "8ec8100b-19e9-41b7-8c14-c9cf3e2bc1e6", "productionID": "e5afb3f5-5860-46b4-9dbf-b17181238c27", "id": "80e6b379-7d20-47da-b633-9c14e79cb840", "companyID": "daf274c1-2697-47fe-8fe4-415bceee37d2" } ], "id": "92d80b7a-5ab9-4612-b654-3033f20130c7", "companyID": "125ad7fb-30e2-4ae0-a913-ba29d7779d44" }
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>125ad7fb-30e2-4ae0-a913-ba29d7779d44</CompanyID> <ID>92d80b7a-5ab9-4612-b654-3033f20130c7</ID> <Amount>3</Amount> <Description>sample string 2</Description> <ProductID>1e210ca7-47f2-4d94-9d7f-d14046e810af</ProductID> <ProductionDate>2025-05-24T17:05:40.5098694+03:00</ProductionDate> <ProductionDetails> <ProductionDetailUpdateDto> <CompanyID>daf274c1-2697-47fe-8fe4-415bceee37d2</CompanyID> <ID>80e6b379-7d20-47da-b633-9c14e79cb840</ID> <Amount>4</Amount> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>db136afc-8507-4f2e-b507-9bf549225b84</ProductID> <ProductionID>e5afb3f5-5860-46b4-9dbf-b17181238c27</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>8ec8100b-19e9-41b7-8c14-c9cf3e2bc1e6</WarehouseID> </ProductionDetailUpdateDto> <ProductionDetailUpdateDto> <CompanyID>daf274c1-2697-47fe-8fe4-415bceee37d2</CompanyID> <ID>80e6b379-7d20-47da-b633-9c14e79cb840</ID> <Amount>4</Amount> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>db136afc-8507-4f2e-b507-9bf549225b84</ProductID> <ProductionID>e5afb3f5-5860-46b4-9dbf-b17181238c27</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>8ec8100b-19e9-41b7-8c14-c9cf3e2bc1e6</WarehouseID> </ProductionDetailUpdateDto> </ProductionDetails> <Quantity>4.1</Quantity> <UnitID>525d1c45-38e9-4907-aabc-282776619adf</UnitID> <WarehouseID>b064547a-72b9-4ccc-8ec4-4a20c5c3b1d0</WarehouseID> </ProductionUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"productionDate":"2025-05-24T17:05:40.5098694+03:00","description":"sample string 2","amount":3.0,"quantity":4.1,"warehouseID":"b064547a-72b9-4ccc-8ec4-4a20c5c3b1d0","productID":"1e210ca7-47f2-4d94-9d7f-d14046e810af","unitID":"525d1c45-38e9-4907-aabc-282776619adf","productionDetails":[{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"db136afc-8507-4f2e-b507-9bf549225b84","warehouseID":"8ec8100b-19e9-41b7-8c14-c9cf3e2bc1e6","productionID":"e5afb3f5-5860-46b4-9dbf-b17181238c27","id":"80e6b379-7d20-47da-b633-9c14e79cb840","companyID":"daf274c1-2697-47fe-8fe4-415bceee37d2"},{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"db136afc-8507-4f2e-b507-9bf549225b84","warehouseID":"8ec8100b-19e9-41b7-8c14-c9cf3e2bc1e6","productionID":"e5afb3f5-5860-46b4-9dbf-b17181238c27","id":"80e6b379-7d20-47da-b633-9c14e79cb840","companyID":"daf274c1-2697-47fe-8fe4-415bceee37d2"}],"id":"92d80b7a-5ab9-4612-b654-3033f20130c7","companyID":"125ad7fb-30e2-4ae0-a913-ba29d7779d44"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.