POST api/Taswya
Request Information
URI Parameters
None.
Body Parameters
SuperTaswyaViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| taswya | tsweya |
None. |
|
| _Data | Collection of tsweya_sub |
None. |
Request Formats
application/json, text/json
Sample:
{
"taswya": {
"id": 1,
"no": 1,
"date": "2025-11-09T14:20:26.1894516+03:00",
"safe": 1,
"center": 1,
"refno": "sample string 2",
"notes": "sample string 3",
"res_id": 1,
"is_deleted": true,
"acc": 1,
"branch": 1,
"Type_Price": 1,
"create_user": 1
},
"_Data": [
{
"tsweya_id": 1,
"item": 1,
"unit": 1,
"avg_price": 1.1,
"val1": 1.1,
"val2": 1.1,
"diff": 1.1,
"difftot": 1.1,
"sub_branch": 1,
"sub_center": 1,
"Price": 1.1,
"SumPrice": 1.1,
"cost_curr": 1.1
},
{
"tsweya_id": 1,
"item": 1,
"unit": 1,
"avg_price": 1.1,
"val1": 1.1,
"val2": 1.1,
"diff": 1.1,
"difftot": 1.1,
"sub_branch": 1,
"sub_center": 1,
"Price": 1.1,
"SumPrice": 1.1,
"cost_curr": 1.1
}
]
}
application/xml, text/xml
Sample:
<SuperTaswyaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiLite.ViewModel">
<_Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
<d2p1:tsweya_sub>
<d2p1:Price>1.1</d2p1:Price>
<d2p1:SumPrice>1.1</d2p1:SumPrice>
<d2p1:avg_price>1.1</d2p1:avg_price>
<d2p1:cost_curr>1.1</d2p1:cost_curr>
<d2p1:diff>1.1</d2p1:diff>
<d2p1:difftot>1.1</d2p1:difftot>
<d2p1:item>1</d2p1:item>
<d2p1:sub_branch>1</d2p1:sub_branch>
<d2p1:sub_center>1</d2p1:sub_center>
<d2p1:tsweya_id>1</d2p1:tsweya_id>
<d2p1:unit>1</d2p1:unit>
<d2p1:val1>1.1</d2p1:val1>
<d2p1:val2>1.1</d2p1:val2>
</d2p1:tsweya_sub>
<d2p1:tsweya_sub>
<d2p1:Price>1.1</d2p1:Price>
<d2p1:SumPrice>1.1</d2p1:SumPrice>
<d2p1:avg_price>1.1</d2p1:avg_price>
<d2p1:cost_curr>1.1</d2p1:cost_curr>
<d2p1:diff>1.1</d2p1:diff>
<d2p1:difftot>1.1</d2p1:difftot>
<d2p1:item>1</d2p1:item>
<d2p1:sub_branch>1</d2p1:sub_branch>
<d2p1:sub_center>1</d2p1:sub_center>
<d2p1:tsweya_id>1</d2p1:tsweya_id>
<d2p1:unit>1</d2p1:unit>
<d2p1:val1>1.1</d2p1:val1>
<d2p1:val2>1.1</d2p1:val2>
</d2p1:tsweya_sub>
</_Data>
<taswya xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
<d2p1:Type_Price>1</d2p1:Type_Price>
<d2p1:acc>1</d2p1:acc>
<d2p1:branch>1</d2p1:branch>
<d2p1:center>1</d2p1:center>
<d2p1:create_user>1</d2p1:create_user>
<d2p1:date>2025-11-09T14:20:26.1894516+03:00</d2p1:date>
<d2p1:id>1</d2p1:id>
<d2p1:is_deleted>true</d2p1:is_deleted>
<d2p1:no>1</d2p1:no>
<d2p1:notes>sample string 3</d2p1:notes>
<d2p1:refno>sample string 2</d2p1:refno>
<d2p1:res_id>1</d2p1:res_id>
<d2p1:safe>1</d2p1:safe>
</taswya>
</SuperTaswyaViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |