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-05-24T16:55:09.622283+03:00", "description": "sample string 2", "amount": 3.0, "quantity": 4.1, "warehouseID": "9ebf28fe-f3cb-42c5-9276-b0ee857d5721", "productID": "bfd5177e-f6e4-4158-ac31-5e5c606e8d64", "companyID": "0fd100c2-64b8-4e12-addc-bd3ef47b1c38", "unitID": "ecf60da0-8521-4837-812e-c897304a6622", "productionDetails": [ { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "ba13cfcd-38af-4393-ad6d-d3fc9c436396", "warehouseID": "8218af9d-785d-453b-9b93-be69b40f28d0", "productionID": "00e99321-5f51-4871-805b-3e9fb536c3c2", "companyID": "4055d88b-221b-4d2f-ad63-a6e14c493ebe" }, { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "ba13cfcd-38af-4393-ad6d-d3fc9c436396", "warehouseID": "8218af9d-785d-453b-9b93-be69b40f28d0", "productionID": "00e99321-5f51-4871-805b-3e9fb536c3c2", "companyID": "4055d88b-221b-4d2f-ad63-a6e14c493ebe" } ] }
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>0fd100c2-64b8-4e12-addc-bd3ef47b1c38</CompanyID> <Description>sample string 2</Description> <ProductID>bfd5177e-f6e4-4158-ac31-5e5c606e8d64</ProductID> <ProductionDate>2025-05-24T16:55:09.622283+03:00</ProductionDate> <ProductionDetails> <ProductionDetailAddDto> <Amount>4</Amount> <CompanyID>4055d88b-221b-4d2f-ad63-a6e14c493ebe</CompanyID> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>ba13cfcd-38af-4393-ad6d-d3fc9c436396</ProductID> <ProductionID>00e99321-5f51-4871-805b-3e9fb536c3c2</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>8218af9d-785d-453b-9b93-be69b40f28d0</WarehouseID> </ProductionDetailAddDto> <ProductionDetailAddDto> <Amount>4</Amount> <CompanyID>4055d88b-221b-4d2f-ad63-a6e14c493ebe</CompanyID> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>ba13cfcd-38af-4393-ad6d-d3fc9c436396</ProductID> <ProductionID>00e99321-5f51-4871-805b-3e9fb536c3c2</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>8218af9d-785d-453b-9b93-be69b40f28d0</WarehouseID> </ProductionDetailAddDto> </ProductionDetails> <Quantity>4.1</Quantity> <UnitID>ecf60da0-8521-4837-812e-c897304a6622</UnitID> <WarehouseID>9ebf28fe-f3cb-42c5-9276-b0ee857d5721</WarehouseID> </ProductionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"productionDate":"2025-05-24T16:55:09.622283+03:00","description":"sample string 2","amount":3.0,"quantity":4.1,"warehouseID":"9ebf28fe-f3cb-42c5-9276-b0ee857d5721","productID":"bfd5177e-f6e4-4158-ac31-5e5c606e8d64","companyID":"0fd100c2-64b8-4e12-addc-bd3ef47b1c38","unitID":"ecf60da0-8521-4837-812e-c897304a6622","productionDetails":[{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"ba13cfcd-38af-4393-ad6d-d3fc9c436396","warehouseID":"8218af9d-785d-453b-9b93-be69b40f28d0","productionID":"00e99321-5f51-4871-805b-3e9fb536c3c2","companyID":"4055d88b-221b-4d2f-ad63-a6e14c493ebe"},{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"ba13cfcd-38af-4393-ad6d-d3fc9c436396","warehouseID":"8218af9d-785d-453b-9b93-be69b40f28d0","productionID":"00e99321-5f51-4871-805b-3e9fb536c3c2","companyID":"4055d88b-221b-4d2f-ad63-a6e14c493ebe"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.