POST api/admin/stocks/v1/school
Request Information
URI Parameters
None.
Body Parameters
StockHistory| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| year | integer |
None. |
|
| month | integer |
None. |
|
| weekNo | integer |
None. |
|
| dayOfYear | integer |
None. |
|
| day | integer |
None. |
|
| date | date |
None. |
|
| user_id | integer |
None. |
|
| user_name | string |
None. |
|
| school_id | string |
None. |
|
| school_name | string |
None. |
|
| region | string |
None. |
|
| image | string |
None. |
|
| item_id | integer |
None. |
|
| item_name | string |
None. |
|
| measurement | string |
None. |
|
| quantity_available | decimal number |
None. |
|
| day_total | integer |
None. |
|
| boarding_total | integer |
None. |
|
| population | integer |
None. |
|
| batches | string |
None. |
|
| unit_metrics | decimal number |
None. |
|
| satisfactory | boolean |
None. |
|
| auto_satisfactory | boolean |
None. |
|
| percentage_increase | decimal number |
None. |
|
| consumption | decimal number |
None. |
|
| cumulative_consumption | decimal number |
None. |
|
| average_consumption | decimal number |
None. |
|
| unit_consumption | decimal number |
None. |
|
| restock_week | integer |
None. |
|
| restock_period | integer |
None. |
|
| average_restock_period | decimal number |
None. |
|
| comments | string |
None. |
|
| history | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"year": 2,
"month": 3,
"weekNo": 4,
"dayOfYear": 5,
"day": 6,
"date": "2025-12-06T04:36:26.5196179+00:00",
"user_id": 8,
"user_name": "sample string 9",
"school_id": "sample string 10",
"school_name": "sample string 11",
"region": "sample string 12",
"image": "sample string 13",
"item_id": 14,
"item_name": "sample string 15",
"measurement": "sample string 16",
"quantity_available": 17.0,
"day_total": 18,
"boarding_total": 19,
"population": 20,
"batches": "sample string 21",
"unit_metrics": 22.0,
"satisfactory": true,
"auto_satisfactory": true,
"percentage_increase": 25.0,
"consumption": 26.0,
"cumulative_consumption": 27.0,
"average_consumption": 28.0,
"unit_consumption": 29.0,
"restock_week": 30,
"restock_period": 31,
"average_restock_period": 32.0,
"comments": "sample string 33",
"history": "sample string 34"
}
application/xml, text/xml
Sample:
<StockHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Stocks.Models"> <auto_satisfactory>true</auto_satisfactory> <average_consumption>28</average_consumption> <average_restock_period>32</average_restock_period> <batches>sample string 21</batches> <boarding_total>19</boarding_total> <comments>sample string 33</comments> <consumption>26</consumption> <cumulative_consumption>27</cumulative_consumption> <date>2025-12-06T04:36:26.5196179+00:00</date> <day>6</day> <dayOfYear>5</dayOfYear> <day_total>18</day_total> <history>sample string 34</history> <id>1</id> <image>sample string 13</image> <item_id>14</item_id> <item_name>sample string 15</item_name> <measurement>sample string 16</measurement> <month>3</month> <percentage_increase>25</percentage_increase> <population>20</population> <quantity_available>17</quantity_available> <region>sample string 12</region> <restock_period>31</restock_period> <restock_week>30</restock_week> <satisfactory>true</satisfactory> <school_id>sample string 10</school_id> <school_name>sample string 11</school_name> <unit_consumption>29</unit_consumption> <unit_metrics>22</unit_metrics> <user_id>8</user_id> <user_name>sample string 9</user_name> <weekNo>4</weekNo> <year>2</year> </StockHistory>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.