POST api/updatecategory
update Category
Request Information
URI Parameters
None.
Body Parameters
{Category}
Category| Name | Description | Type | Additional information |
|---|---|---|---|
| id_ass | integer |
None. |
|
| code | integer |
None. |
|
| prim | string |
None. |
|
| description | string |
None. |
|
| note | string |
None. |
|
| language1 | string |
None. |
|
| language2 | string |
None. |
|
| language3 | string |
None. |
|
| language4 | string |
None. |
|
| language5 | string |
None. |
|
| image | string |
None. |
|
| father | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id_ass": 1,
"code": 2,
"prim": "sample string 3",
"description": "sample string 4",
"note": "sample string 5",
"language1": "sample string 6",
"language2": "sample string 7",
"language3": "sample string 8",
"language4": "sample string 9",
"language5": "sample string 10",
"image": "sample string 11",
"father": 12
}
text/xml
Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zad_api"> <code>2</code> <description>sample string 4</description> <father>12</father> <id_ass>1</id_ass> <image>sample string 11</image> <language1>sample string 6</language1> <language2>sample string 7</language2> <language3>sample string 8</language3> <language4>sample string 9</language4> <language5>sample string 10</language5> <note>sample string 5</note> <prim>sample string 3</prim> </Category>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
{"data" [],"rowcount": 1,"status": true,"msg_error": ""}
outdata| Name | Description | Type | Additional information |
|---|---|---|---|
| data | DataTable |
None. |
|
| rowcount |
if get data then return count row else return the id row affected |
integer |
None. |
| status | boolean |
None. |
|
| msg_error | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": null,
"rowcount": 1,
"status": true,
"msg_error": "sample string 3"
}
text/xml
Sample:
<outdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zad_api"> <data i:nil="true" /> <msg_error>sample string 3</msg_error> <rowcount>1</rowcount> <status>true</status> </outdata>