POST api/updatevisit
update visit
Request Information
URI Parameters
None.
Body Parameters
{visist}
SaleVisite| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| number | integer |
None. |
|
| date_1 | date |
None. |
|
| nextVisit | date |
None. |
|
| userid | integer |
None. |
|
| accid | integer |
None. |
|
| visitType | string |
None. |
|
| statrTime | string |
None. |
|
| endTime | string |
None. |
|
| note1 | string |
None. |
|
| note2 | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"number": 2,
"date_1": "2025-12-16T07:15:24.1793064+03:00",
"nextVisit": "2025-12-16T07:15:24.1793064+03:00",
"userid": 5,
"accid": 6,
"visitType": "sample string 7",
"statrTime": "sample string 8",
"endTime": "sample string 9",
"note1": "sample string 10",
"note2": "sample string 11"
}
text/xml
Sample:
<SaleVisite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zad_api"> <accid>6</accid> <date_1>2025-12-16T07:15:24.1793064+03:00</date_1> <endTime>sample string 9</endTime> <id>1</id> <nextVisit>2025-12-16T07:15:24.1793064+03:00</nextVisit> <note1>sample string 10</note1> <note2>sample string 11</note2> <number>2</number> <statrTime>sample string 8</statrTime> <userid>5</userid> <visitType>sample string 7</visitType> </SaleVisite>
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>