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-07-08T21:18:04.0664984+03:00", "description": "sample string 2", "amount": 3.0, "quantity": 4.1, "warehouseID": "aa48acab-77bc-42e4-ac5f-9e898f6f093a", "productID": "e89c748a-473e-4150-b83d-761e5bd82240", "companyID": "99e24931-1d4b-4087-9e7f-480b8c899f81", "unitID": "f90a4c9c-3e11-43b2-971f-86a581e7933f", "productionDetails": [ { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "354540eb-94b8-4059-9bc0-e005c023f02d", "warehouseID": "43505327-d779-419c-8470-e9c36d87cffa", "productionID": "e91370a4-b5f7-4264-8e4e-b3249d9c79f7", "companyID": "a3869dd6-1d0b-4769-98e5-280bd989074d" }, { "currencyAmount": 1.1, "currencyRate": 2.1, "quantity": 3.1, "amount": 4.0, "totalAmount": 5.0, "description": "sample string 6", "productID": "354540eb-94b8-4059-9bc0-e005c023f02d", "warehouseID": "43505327-d779-419c-8470-e9c36d87cffa", "productionID": "e91370a4-b5f7-4264-8e4e-b3249d9c79f7", "companyID": "a3869dd6-1d0b-4769-98e5-280bd989074d" } ] }
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>99e24931-1d4b-4087-9e7f-480b8c899f81</CompanyID> <Description>sample string 2</Description> <ProductID>e89c748a-473e-4150-b83d-761e5bd82240</ProductID> <ProductionDate>2025-07-08T21:18:04.0664984+03:00</ProductionDate> <ProductionDetails> <ProductionDetailAddDto> <Amount>4</Amount> <CompanyID>a3869dd6-1d0b-4769-98e5-280bd989074d</CompanyID> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>354540eb-94b8-4059-9bc0-e005c023f02d</ProductID> <ProductionID>e91370a4-b5f7-4264-8e4e-b3249d9c79f7</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>43505327-d779-419c-8470-e9c36d87cffa</WarehouseID> </ProductionDetailAddDto> <ProductionDetailAddDto> <Amount>4</Amount> <CompanyID>a3869dd6-1d0b-4769-98e5-280bd989074d</CompanyID> <CurrencyAmount>1.1</CurrencyAmount> <CurrencyRate>2.1</CurrencyRate> <Description>sample string 6</Description> <ProductID>354540eb-94b8-4059-9bc0-e005c023f02d</ProductID> <ProductionID>e91370a4-b5f7-4264-8e4e-b3249d9c79f7</ProductionID> <Quantity>3.1</Quantity> <TotalAmount>5</TotalAmount> <WarehouseID>43505327-d779-419c-8470-e9c36d87cffa</WarehouseID> </ProductionDetailAddDto> </ProductionDetails> <Quantity>4.1</Quantity> <UnitID>f90a4c9c-3e11-43b2-971f-86a581e7933f</UnitID> <WarehouseID>aa48acab-77bc-42e4-ac5f-9e898f6f093a</WarehouseID> </ProductionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"productionDate":"2025-07-08T21:18:04.0664984+03:00","description":"sample string 2","amount":3.0,"quantity":4.1,"warehouseID":"aa48acab-77bc-42e4-ac5f-9e898f6f093a","productID":"e89c748a-473e-4150-b83d-761e5bd82240","companyID":"99e24931-1d4b-4087-9e7f-480b8c899f81","unitID":"f90a4c9c-3e11-43b2-971f-86a581e7933f","productionDetails":[{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"354540eb-94b8-4059-9bc0-e005c023f02d","warehouseID":"43505327-d779-419c-8470-e9c36d87cffa","productionID":"e91370a4-b5f7-4264-8e4e-b3249d9c79f7","companyID":"a3869dd6-1d0b-4769-98e5-280bd989074d"},{"currencyAmount":1.1,"currencyRate":2.1,"quantity":3.1,"amount":4.0,"totalAmount":5.0,"description":"sample string 6","productID":"354540eb-94b8-4059-9bc0-e005c023f02d","warehouseID":"43505327-d779-419c-8470-e9c36d87cffa","productionID":"e91370a4-b5f7-4264-8e4e-b3249d9c79f7","companyID":"a3869dd6-1d0b-4769-98e5-280bd989074d"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.