POST api/user/DeleteUser
Request Information
URI Parameters
None.
Body Parameters
UserModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PageStarterString | string |
None. |
|
| IsChangePassword | boolean |
None. |
|
| NewPassword | string |
None. |
|
| PermissionMenus | Collection of PermissionMenuModel |
None. |
|
| LastUpdate | date |
None. |
|
| LastUpdateString | string |
None. |
|
| ID | integer |
None. |
|
| Username | string |
Required String length: inclusive between 0 and 50 |
|
| Password | string |
Required String length: inclusive between 0 and 32 |
|
| Name | string |
Required String length: inclusive between 0 and 100 |
|
| LName | string |
String length: inclusive between 0 and 100 |
|
| Image | string |
String length: inclusive between 0 and 250 |
|
| PageStarter | integer |
None. |
|
| CreateBy | integer |
None. |
|
| CreateTime | date |
None. |
|
| UpdateBy | integer |
None. |
|
| UpdateTime | date |
None. |
|
| IsActive | boolean |
None. |
|
| IsDelete | boolean |
None. |
|
| IsAdmin | boolean |
None. |
|
| AccessKeyExpired | integer |
None. |
|
| ForceChangePassword | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"PageStarterString": "sample string 1",
"IsChangePassword": true,
"NewPassword": "sample string 3",
"PermissionMenus": [
{
"ID": 1,
"MenuCode": "sample string 2",
"MenuName": "sample string 3",
"MenuIcon": "sample string 4",
"ParentMenu": 1,
"IsLabel": true,
"Seq": 6,
"IsActive": true,
"Permission_ID": 8,
"MenuID": 9,
"IsRead": true,
"IsAdd": true,
"IsEdit": true,
"IsDelete": true,
"CreateBy": 10,
"CreateTime": "2025-12-11T21:29:41.5008631+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:29:41.5008631+07:00"
},
{
"ID": 1,
"MenuCode": "sample string 2",
"MenuName": "sample string 3",
"MenuIcon": "sample string 4",
"ParentMenu": 1,
"IsLabel": true,
"Seq": 6,
"IsActive": true,
"Permission_ID": 8,
"MenuID": 9,
"IsRead": true,
"IsAdd": true,
"IsEdit": true,
"IsDelete": true,
"CreateBy": 10,
"CreateTime": "2025-12-11T21:29:41.5008631+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:29:41.5008631+07:00"
}
],
"LastUpdate": "2025-12-11T21:29:41.5008631+07:00",
"LastUpdateString": "11/12/2568 21:29:41",
"ID": 4,
"Username": "sample string 5",
"Password": "sample string 6",
"Name": "sample string 7",
"LName": "sample string 8",
"Image": "sample string 9",
"PageStarter": 1,
"CreateBy": 10,
"CreateTime": "2025-12-11T21:29:41.5008631+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:29:41.5008631+07:00",
"IsActive": true,
"IsDelete": true,
"IsAdmin": true,
"AccessKeyExpired": 1,
"ForceChangePassword": true
}
application/xml, text/xml
Sample:
<UserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.CustomModel">
<AccessKeyExpired xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</AccessKeyExpired>
<CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">10</CreateBy>
<CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:29:41.5008631+07:00</CreateTime>
<ForceChangePassword xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</ForceChangePassword>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4</ID>
<Image xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 9</Image>
<IsActive xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsActive>
<IsAdmin xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsAdmin>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsDelete>
<LName xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 8</LName>
<Name xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 7</Name>
<PageStarter xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</PageStarter>
<Password xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 6</Password>
<UpdateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</UpdateBy>
<UpdateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:29:41.5008631+07:00</UpdateTime>
<Username xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 5</Username>
<IsChangePassword>true</IsChangePassword>
<NewPassword>sample string 3</NewPassword>
<PageStarterString>sample string 1</PageStarterString>
<PermissionMenus>
<PermissionMenuModel>
<CreateBy>10</CreateBy>
<CreateTime>2025-12-11T21:29:41.5008631+07:00</CreateTime>
<ID>1</ID>
<IsActive>true</IsActive>
<IsAdd>true</IsAdd>
<IsDelete>true</IsDelete>
<IsEdit>true</IsEdit>
<IsLabel>true</IsLabel>
<IsRead>true</IsRead>
<MenuCode>sample string 2</MenuCode>
<MenuID>9</MenuID>
<MenuIcon>sample string 4</MenuIcon>
<MenuName>sample string 3</MenuName>
<ParentMenu>1</ParentMenu>
<Permission_ID>8</Permission_ID>
<Seq>6</Seq>
<UpdateBy>1</UpdateBy>
<UpdateTime>2025-12-11T21:29:41.5008631+07:00</UpdateTime>
</PermissionMenuModel>
<PermissionMenuModel>
<CreateBy>10</CreateBy>
<CreateTime>2025-12-11T21:29:41.5008631+07:00</CreateTime>
<ID>1</ID>
<IsActive>true</IsActive>
<IsAdd>true</IsAdd>
<IsDelete>true</IsDelete>
<IsEdit>true</IsEdit>
<IsLabel>true</IsLabel>
<IsRead>true</IsRead>
<MenuCode>sample string 2</MenuCode>
<MenuID>9</MenuID>
<MenuIcon>sample string 4</MenuIcon>
<MenuName>sample string 3</MenuName>
<ParentMenu>1</ParentMenu>
<Permission_ID>8</Permission_ID>
<Seq>6</Seq>
<UpdateBy>1</UpdateBy>
<UpdateTime>2025-12-11T21:29:41.5008631+07:00</UpdateTime>
</PermissionMenuModel>
</PermissionMenus>
</UserModel>
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.