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-08-05T21:27:08.0437195+03:00", "description": "sample string 2", "amount": 3.0, "quantity": 4.1, "warehouseID": "6c20fab0-4fc8-4591-b6c2-000868f478a3", "productID": "2532369f-61a3-46e9-abeb-4aecb5fd1f33", "unitID": "a9bb0799-9217-40c5-abf8-28e7c9983863", "productionDetails": [ { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "f5e1b78c-784e-4abf-8f4f-6d72fb1dbb99", "warehouseID": "02af6ec7-bb07-4364-a469-135da63f0e47", "productionID": "26e41688-731f-4975-862b-bc7edaffe8d1", "id": "b3069468-d693-4688-82f1-754474473bfc", "companyID": "a6cf2728-72aa-48f1-aee4-7494fe86ab02" }, { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "f5e1b78c-784e-4abf-8f4f-6d72fb1dbb99", "warehouseID": "02af6ec7-bb07-4364-a469-135da63f0e47", "productionID": "26e41688-731f-4975-862b-bc7edaffe8d1", "id": "b3069468-d693-4688-82f1-754474473bfc", "companyID": "a6cf2728-72aa-48f1-aee4-7494fe86ab02" } ], "id": "11d2a10b-4ef1-4fc2-b4e3-841875988297", "companyID": "c9c5d1b3-5ac9-4ae7-b0dc-cfa2989dc5e9" }
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>c9c5d1b3-5ac9-4ae7-b0dc-cfa2989dc5e9</CompanyID> <ID>11d2a10b-4ef1-4fc2-b4e3-841875988297</ID> <Amount>3</Amount> <Description>sample string 2</Description> <ProductID>2532369f-61a3-46e9-abeb-4aecb5fd1f33</ProductID> <ProductionDate>2025-08-05T21:27:08.0437195+03:00</ProductionDate> <ProductionDetails> <ProductionDetailUpdateDto> <CompanyID>a6cf2728-72aa-48f1-aee4-7494fe86ab02</CompanyID> <ID>b3069468-d693-4688-82f1-754474473bfc</ID> <Amount>4</Amount> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>f5e1b78c-784e-4abf-8f4f-6d72fb1dbb99</ProductID> <ProductionID>26e41688-731f-4975-862b-bc7edaffe8d1</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>02af6ec7-bb07-4364-a469-135da63f0e47</WarehouseID> </ProductionDetailUpdateDto> <ProductionDetailUpdateDto> <CompanyID>a6cf2728-72aa-48f1-aee4-7494fe86ab02</CompanyID> <ID>b3069468-d693-4688-82f1-754474473bfc</ID> <Amount>4</Amount> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>f5e1b78c-784e-4abf-8f4f-6d72fb1dbb99</ProductID> <ProductionID>26e41688-731f-4975-862b-bc7edaffe8d1</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>02af6ec7-bb07-4364-a469-135da63f0e47</WarehouseID> </ProductionDetailUpdateDto> </ProductionDetails> <Quantity>4.1</Quantity> <UnitID>a9bb0799-9217-40c5-abf8-28e7c9983863</UnitID> <WarehouseID>6c20fab0-4fc8-4591-b6c2-000868f478a3</WarehouseID> </ProductionUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"productionDate":"2025-08-05T21:27:08.0437195+03:00","description":"sample string 2","amount":3.0,"quantity":4.1,"warehouseID":"6c20fab0-4fc8-4591-b6c2-000868f478a3","productID":"2532369f-61a3-46e9-abeb-4aecb5fd1f33","unitID":"a9bb0799-9217-40c5-abf8-28e7c9983863","productionDetails":[{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"f5e1b78c-784e-4abf-8f4f-6d72fb1dbb99","warehouseID":"02af6ec7-bb07-4364-a469-135da63f0e47","productionID":"26e41688-731f-4975-862b-bc7edaffe8d1","id":"b3069468-d693-4688-82f1-754474473bfc","companyID":"a6cf2728-72aa-48f1-aee4-7494fe86ab02"},{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"f5e1b78c-784e-4abf-8f4f-6d72fb1dbb99","warehouseID":"02af6ec7-bb07-4364-a469-135da63f0e47","productionID":"26e41688-731f-4975-862b-bc7edaffe8d1","id":"b3069468-d693-4688-82f1-754474473bfc","companyID":"a6cf2728-72aa-48f1-aee4-7494fe86ab02"}],"id":"11d2a10b-4ef1-4fc2-b4e3-841875988297","companyID":"c9c5d1b3-5ac9-4ae7-b0dc-cfa2989dc5e9"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.