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-24T14:41:30.4697025+03:00", "description": "sample string 2", "amount": 3.0, "quantity": 4.1, "warehouseID": "81ea11a2-fef4-4aa7-90ac-793d52695074", "productID": "e35f5202-55ac-4887-912d-6b9789c5a0f9", "companyID": "19d9a446-5062-456c-9abd-cc798938827d", "unitID": "77765c70-363c-458d-82c6-8e5b36fe3785", "productionDetails": [ { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "45d11ff6-591d-4f84-93ad-cffcc79d6a84", "warehouseID": "2727f0af-b2d8-41fd-9d7f-d5a18030d85b", "productionID": "b4919f6d-79a8-452b-b3ef-547239f123ca", "companyID": "6cb3153f-7a5d-4da3-9244-5d8399092fd0" }, { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "45d11ff6-591d-4f84-93ad-cffcc79d6a84", "warehouseID": "2727f0af-b2d8-41fd-9d7f-d5a18030d85b", "productionID": "b4919f6d-79a8-452b-b3ef-547239f123ca", "companyID": "6cb3153f-7a5d-4da3-9244-5d8399092fd0" } ] }
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>19d9a446-5062-456c-9abd-cc798938827d</CompanyID> <Description>sample string 2</Description> <ProductID>e35f5202-55ac-4887-912d-6b9789c5a0f9</ProductID> <ProductionDate>2025-05-24T14:41:30.4697025+03:00</ProductionDate> <ProductionDetails> <ProductionDetailAddDto> <Amount>4</Amount> <CompanyID>6cb3153f-7a5d-4da3-9244-5d8399092fd0</CompanyID> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>45d11ff6-591d-4f84-93ad-cffcc79d6a84</ProductID> <ProductionID>b4919f6d-79a8-452b-b3ef-547239f123ca</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>2727f0af-b2d8-41fd-9d7f-d5a18030d85b</WarehouseID> </ProductionDetailAddDto> <ProductionDetailAddDto> <Amount>4</Amount> <CompanyID>6cb3153f-7a5d-4da3-9244-5d8399092fd0</CompanyID> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>45d11ff6-591d-4f84-93ad-cffcc79d6a84</ProductID> <ProductionID>b4919f6d-79a8-452b-b3ef-547239f123ca</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>2727f0af-b2d8-41fd-9d7f-d5a18030d85b</WarehouseID> </ProductionDetailAddDto> </ProductionDetails> <Quantity>4.1</Quantity> <UnitID>77765c70-363c-458d-82c6-8e5b36fe3785</UnitID> <WarehouseID>81ea11a2-fef4-4aa7-90ac-793d52695074</WarehouseID> </ProductionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"productionDate":"2025-05-24T14:41:30.4697025+03:00","description":"sample string 2","amount":3.0,"quantity":4.1,"warehouseID":"81ea11a2-fef4-4aa7-90ac-793d52695074","productID":"e35f5202-55ac-4887-912d-6b9789c5a0f9","companyID":"19d9a446-5062-456c-9abd-cc798938827d","unitID":"77765c70-363c-458d-82c6-8e5b36fe3785","productionDetails":[{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"45d11ff6-591d-4f84-93ad-cffcc79d6a84","warehouseID":"2727f0af-b2d8-41fd-9d7f-d5a18030d85b","productionID":"b4919f6d-79a8-452b-b3ef-547239f123ca","companyID":"6cb3153f-7a5d-4da3-9244-5d8399092fd0"},{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"45d11ff6-591d-4f84-93ad-cffcc79d6a84","warehouseID":"2727f0af-b2d8-41fd-9d7f-d5a18030d85b","productionID":"b4919f6d-79a8-452b-b3ef-547239f123ca","companyID":"6cb3153f-7a5d-4da3-9244-5d8399092fd0"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.