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-29T12:25:45.1355858+03:00", "description": "sample string 2", "amount": 3.0, "quantity": 4.1, "warehouseID": "942336d1-b88f-4af5-9745-c74333afc119", "productID": "5c865039-7bf5-4e53-863b-055a325df8ac", "unitID": "a1d6bfe2-45a2-4cca-9f3a-9d17f5f4f296", "productionDetails": [ { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "9afa039b-8221-4109-92de-3e7965a254ff", "warehouseID": "648b1d8b-dde6-4065-922b-4451584d5c7c", "productionID": "0f249990-036d-445c-8b15-07005a0c94cc", "id": "6c8e3b41-6b23-4494-b686-c101f4f0c6fa", "companyID": "63143f45-9456-4871-9ddd-fd1fbacca865" }, { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "9afa039b-8221-4109-92de-3e7965a254ff", "warehouseID": "648b1d8b-dde6-4065-922b-4451584d5c7c", "productionID": "0f249990-036d-445c-8b15-07005a0c94cc", "id": "6c8e3b41-6b23-4494-b686-c101f4f0c6fa", "companyID": "63143f45-9456-4871-9ddd-fd1fbacca865" } ], "id": "0c46abb4-c252-41d1-8e0f-a9b68a8b96bb", "companyID": "4a3687a7-0969-4793-bd12-8256268eb0d2" }
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>4a3687a7-0969-4793-bd12-8256268eb0d2</CompanyID> <ID>0c46abb4-c252-41d1-8e0f-a9b68a8b96bb</ID> <Amount>3</Amount> <Description>sample string 2</Description> <ProductID>5c865039-7bf5-4e53-863b-055a325df8ac</ProductID> <ProductionDate>2025-08-29T12:25:45.1355858+03:00</ProductionDate> <ProductionDetails> <ProductionDetailUpdateDto> <CompanyID>63143f45-9456-4871-9ddd-fd1fbacca865</CompanyID> <ID>6c8e3b41-6b23-4494-b686-c101f4f0c6fa</ID> <Amount>4</Amount> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>9afa039b-8221-4109-92de-3e7965a254ff</ProductID> <ProductionID>0f249990-036d-445c-8b15-07005a0c94cc</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>648b1d8b-dde6-4065-922b-4451584d5c7c</WarehouseID> </ProductionDetailUpdateDto> <ProductionDetailUpdateDto> <CompanyID>63143f45-9456-4871-9ddd-fd1fbacca865</CompanyID> <ID>6c8e3b41-6b23-4494-b686-c101f4f0c6fa</ID> <Amount>4</Amount> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>9afa039b-8221-4109-92de-3e7965a254ff</ProductID> <ProductionID>0f249990-036d-445c-8b15-07005a0c94cc</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>648b1d8b-dde6-4065-922b-4451584d5c7c</WarehouseID> </ProductionDetailUpdateDto> </ProductionDetails> <Quantity>4.1</Quantity> <UnitID>a1d6bfe2-45a2-4cca-9f3a-9d17f5f4f296</UnitID> <WarehouseID>942336d1-b88f-4af5-9745-c74333afc119</WarehouseID> </ProductionUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"productionDate":"2025-08-29T12:25:45.1355858+03:00","description":"sample string 2","amount":3.0,"quantity":4.1,"warehouseID":"942336d1-b88f-4af5-9745-c74333afc119","productID":"5c865039-7bf5-4e53-863b-055a325df8ac","unitID":"a1d6bfe2-45a2-4cca-9f3a-9d17f5f4f296","productionDetails":[{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"9afa039b-8221-4109-92de-3e7965a254ff","warehouseID":"648b1d8b-dde6-4065-922b-4451584d5c7c","productionID":"0f249990-036d-445c-8b15-07005a0c94cc","id":"6c8e3b41-6b23-4494-b686-c101f4f0c6fa","companyID":"63143f45-9456-4871-9ddd-fd1fbacca865"},{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"9afa039b-8221-4109-92de-3e7965a254ff","warehouseID":"648b1d8b-dde6-4065-922b-4451584d5c7c","productionID":"0f249990-036d-445c-8b15-07005a0c94cc","id":"6c8e3b41-6b23-4494-b686-c101f4f0c6fa","companyID":"63143f45-9456-4871-9ddd-fd1fbacca865"}],"id":"0c46abb4-c252-41d1-8e0f-a9b68a8b96bb","companyID":"4a3687a7-0969-4793-bd12-8256268eb0d2"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.