POST api/Production/Add
Request Information
URI Parameters
None.
Body Parameters
ProductionAddDtoName | 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. |
|
CompanyID | globally unique identifier |
None. |
|
UnitID | globally unique identifier |
None. |
|
ProductionDetails | Collection of ProductionDetailAddDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "productionDate": "2025-08-29T12:25:28.1342877+03:00", "description": "sample string 2", "amount": 3.0, "quantity": 4.1, "warehouseID": "e23c32f0-94cd-47d4-afdf-d39cedf40ffa", "productID": "181226ca-fed2-483d-a35e-168fdeaacca6", "companyID": "df9feb0d-29d6-4962-b01e-2612529535af", "unitID": "a68a6d2e-515f-4bf6-a800-9898803526c4", "productionDetails": [ { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "3efab5f1-53c0-4107-8bd0-c6a0b5b4ceab", "warehouseID": "e644a966-6d4d-429f-ac46-360664e20160", "productionID": "02d654fb-caa3-4721-9f7c-78cb5894bd01", "companyID": "275d3ebb-a55c-45c5-a0f8-c5b50f8ca84a" }, { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "3efab5f1-53c0-4107-8bd0-c6a0b5b4ceab", "warehouseID": "e644a966-6d4d-429f-ac46-360664e20160", "productionID": "02d654fb-caa3-4721-9f7c-78cb5894bd01", "companyID": "275d3ebb-a55c-45c5-a0f8-c5b50f8ca84a" } ] }
application/xml, text/xml
Sample:
<ProductionAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <Amount>3</Amount> <CompanyID>df9feb0d-29d6-4962-b01e-2612529535af</CompanyID> <Description>sample string 2</Description> <ProductID>181226ca-fed2-483d-a35e-168fdeaacca6</ProductID> <ProductionDate>2025-08-29T12:25:28.1342877+03:00</ProductionDate> <ProductionDetails> <ProductionDetailAddDto> <Amount>4</Amount> <CompanyID>275d3ebb-a55c-45c5-a0f8-c5b50f8ca84a</CompanyID> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>3efab5f1-53c0-4107-8bd0-c6a0b5b4ceab</ProductID> <ProductionID>02d654fb-caa3-4721-9f7c-78cb5894bd01</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>e644a966-6d4d-429f-ac46-360664e20160</WarehouseID> </ProductionDetailAddDto> <ProductionDetailAddDto> <Amount>4</Amount> <CompanyID>275d3ebb-a55c-45c5-a0f8-c5b50f8ca84a</CompanyID> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>3efab5f1-53c0-4107-8bd0-c6a0b5b4ceab</ProductID> <ProductionID>02d654fb-caa3-4721-9f7c-78cb5894bd01</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>e644a966-6d4d-429f-ac46-360664e20160</WarehouseID> </ProductionDetailAddDto> </ProductionDetails> <Quantity>4.1</Quantity> <UnitID>a68a6d2e-515f-4bf6-a800-9898803526c4</UnitID> <WarehouseID>e23c32f0-94cd-47d4-afdf-d39cedf40ffa</WarehouseID> </ProductionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"productionDate":"2025-08-29T12:25:28.1342877+03:00","description":"sample string 2","amount":3.0,"quantity":4.1,"warehouseID":"e23c32f0-94cd-47d4-afdf-d39cedf40ffa","productID":"181226ca-fed2-483d-a35e-168fdeaacca6","companyID":"df9feb0d-29d6-4962-b01e-2612529535af","unitID":"a68a6d2e-515f-4bf6-a800-9898803526c4","productionDetails":[{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"3efab5f1-53c0-4107-8bd0-c6a0b5b4ceab","warehouseID":"e644a966-6d4d-429f-ac46-360664e20160","productionID":"02d654fb-caa3-4721-9f7c-78cb5894bd01","companyID":"275d3ebb-a55c-45c5-a0f8-c5b50f8ca84a"},{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"3efab5f1-53c0-4107-8bd0-c6a0b5b4ceab","warehouseID":"e644a966-6d4d-429f-ac46-360664e20160","productionID":"02d654fb-caa3-4721-9f7c-78cb5894bd01","companyID":"275d3ebb-a55c-45c5-a0f8-c5b50f8ca84a"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.