POST api/User/Edit
Request Information
URI Parameters
None.
Body Parameters
sys_admin| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| username | string |
None. |
|
| userpwd | string |
None. |
|
| roleid | integer |
None. |
|
| truename | string |
None. |
|
| deptid | integer |
None. |
|
| phoneno | string |
None. |
|
| status | integer |
None. |
|
| addtime | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"username": "sample string 2",
"userpwd": "sample string 3",
"roleid": 4,
"truename": "sample string 5",
"deptid": 6,
"phoneno": "sample string 7",
"status": 8,
"addtime": "2026-03-26T14:26:07.9568752+08:00"
}
multipart/form-data
Sample:
<sys_admin xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Easyman.Model"><addtime>2026-03-26T14:26:07.9568752+08:00</addtime><deptid>6</deptid><id>1</id><phoneno>sample string 7</phoneno><roleid>4</roleid><status>8</status><truename>sample string 5</truename><username>sample string 2</username><userpwd>sample string 3</userpwd></sys_admin>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServerResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
返回码 |
integer |
None. |
| errmsg |
对返回码的文本描述内容 |
string |
None. |
| ReturnValue |
返回值 |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"ReturnValue": {}
}
multipart/form-data
Sample:
<ServerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Easyman.Api.Models"><_x003C_ReturnValue_x003E_k__BackingField /><_x003C_errcode_x003E_k__BackingField>1</_x003C_errcode_x003E_k__BackingField><_x003C_errmsg_x003E_k__BackingField>sample string 2</_x003C_errmsg_x003E_k__BackingField></ServerResponse>