POST api/user/PostByUsernameAndPassword
Request Information
URI Parameters
None.
Body Parameters
User| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| Username | string |
Required Max length: 100 |
|
| Password | string |
Required Max length: 50 |
|
| PasswordHashed | string |
Required Max length: 200 |
|
| FirstName | string |
Required Max length: 100 String length: inclusive between 0 and 50 |
|
| LastName | string |
Required Max length: 50 String length: inclusive between 0 and 50 |
|
| MiddleName | string |
Max length: 50 String length: inclusive between 0 and 50 |
|
| Role | string |
Required Max length: 50 |
|
| Website | string |
Matching regular expression pattern: ((?:(?:https?|ftp|gopher|telnet|file|notes|ms-help):(?://|\\\\)(?:www\.)?|www\.)[\w\d:#@%/;$()~_?\+,\-=\\.&]+) Max length: 300 |
|
| IsSendImportantEmail | boolean |
Required |
|
| IsApproved | boolean |
Required |
|
| IsActiveDirectory | boolean |
Required |
|
| ApprovedDate | date |
Data type: DateTime |
|
| Phone | string |
Max length: 50 |
|
| PublicImagePath | string |
Max length: 500 |
|
| string |
Required Max length: 500 |
||
| LoginDate | date |
Data type: DateTime |
|
| LoginStatus | string |
Max length: 50 |
|
| IsSendSMSAlert | boolean |
None. |
|
| IsActive | boolean |
None. |
|
| IsAccountLocked | boolean |
None. |
|
| SmsGuid | globally unique identifier |
None. |
|
| OldPassword | string |
Required Data type: Password Max length: 50 |
|
| NewPassword | string |
Required Data type: Password Matching regular expression pattern: ^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{6,}$ Max length: 50 String length: inclusive between 0 and 50 |
|
| ConfirmPassword | string |
Required Data type: Password Max length: 50 |
|
| RememberMe | boolean |
None. |
|
| HiddenImageId | string |
None. |
|
| EmailToCollection | string |
None. |
|
| LastNameNotRequired | string |
None. |
|
| EmailFrom | string |
Required Max length: 500 |
|
| EmailSubject | string |
Required Max length: 500 |
|
| EmailBody | string |
Required |
|
| UpdatedDateString | string |
None. |
|
| CompanyNames | string |
None. |
|
| DepartmentNames | string |
None. |
|
| TempPublicImagePath | string |
None. |
|
| FullName | string |
None. |
|
| PositionName | string |
None. |
|
| ApiToken | string |
None. |
|
| StrLoginDate | string |
None. |
|
| GuidNo | globally unique identifier |
None. |
|
| IsVerified | boolean |
None. |
|
| CreatedDate | date |
Required Data type: Date |
|
| CreatedById | integer |
Required |
|
| UpdatedDate | date |
Required Data type: Date |
|
| UpdatedById | integer |
Required |
|
| DeletedDate | date |
Data type: Date |
|
| UpdateRemarks | string |
Max length: 1500 |
|
| IsDeleted | boolean |
Required |
Request Formats
application/json, text/json
{
"UserId": 1,
"Username": "sample string 2",
"Password": "sample string 3",
"PasswordHashed": "sample string 4",
"FirstName": "sample string 5",
"LastName": "sample string 6",
"MiddleName": "sample string 7",
"Role": "sample string 8",
"Website": "sample string 9",
"IsSendImportantEmail": true,
"IsApproved": true,
"IsActiveDirectory": true,
"ApprovedDate": "2026-03-22T08:18:46.136439+00:00",
"Phone": "sample string 13",
"PublicImagePath": "sample string 14",
"Email": "sample string 15",
"LoginDate": "2026-03-22T08:18:46.136439+00:00",
"LoginStatus": "sample string 16",
"IsSendSMSAlert": true,
"IsActive": true,
"IsAccountLocked": true,
"SmsGuid": "4a435b7e-6a23-4e98-8b83-85113f9e5648",
"OldPassword": "sample string 20",
"NewPassword": "sample string 21",
"ConfirmPassword": "sample string 22",
"RememberMe": true,
"HiddenImageId": "sample string 24",
"EmailToCollection": "sample string 25",
"LastNameNotRequired": "sample string 26",
"EmailFrom": "sample string 27",
"EmailSubject": "sample string 28",
"EmailBody": "sample string 29",
"UpdatedDateString": "sample string 30",
"CompanyNames": "sample string 31",
"DepartmentNames": "sample string 32",
"TempPublicImagePath": "sample string 33",
"FullName": "sample string 34",
"PositionName": "sample string 35",
"ApiToken": "sample string 36",
"StrLoginDate": "sample string 37",
"GuidNo": "23db5b13-b64e-4c96-b11d-f4cf8b3cecdd",
"IsVerified": true,
"CreatedDate": "2026-03-22T08:18:46.136439+00:00",
"CreatedById": 40,
"UpdatedDate": "2026-03-22T08:18:46.136439+00:00",
"UpdatedById": 42,
"DeletedDate": "2026-03-22T08:18:46.136439+00:00",
"UpdateRemarks": "sample string 43",
"IsDeleted": true
}
application/xml, text/xml
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CAD.BL"> <ApiToken>sample string 36</ApiToken> <ApprovedDate>2026-03-22T08:18:46.136439+00:00</ApprovedDate> <CompanyNames>sample string 31</CompanyNames> <ConfirmPassword>sample string 22</ConfirmPassword> <CreatedById>40</CreatedById> <CreatedDate>2026-03-22T08:18:46.136439+00:00</CreatedDate> <DeletedDate>2026-03-22T08:18:46.136439+00:00</DeletedDate> <DepartmentNames>sample string 32</DepartmentNames> <Email>sample string 15</Email> <EmailBody>sample string 29</EmailBody> <EmailFrom>sample string 27</EmailFrom> <EmailSubject>sample string 28</EmailSubject> <EmailToCollection>sample string 25</EmailToCollection> <FirstName>sample string 5</FirstName> <FullName>sample string 34</FullName> <GuidNo>23db5b13-b64e-4c96-b11d-f4cf8b3cecdd</GuidNo> <HiddenImageId>sample string 24</HiddenImageId> <IsAccountLocked>true</IsAccountLocked> <IsActive>true</IsActive> <IsActiveDirectory>true</IsActiveDirectory> <IsApproved>true</IsApproved> <IsDeleted>true</IsDeleted> <IsSendImportantEmail>true</IsSendImportantEmail> <IsSendSMSAlert>true</IsSendSMSAlert> <IsVerified>true</IsVerified> <LastName>sample string 6</LastName> <LastNameNotRequired>sample string 26</LastNameNotRequired> <LoginDate>2026-03-22T08:18:46.136439+00:00</LoginDate> <LoginStatus>sample string 16</LoginStatus> <MiddleName>sample string 7</MiddleName> <NewPassword>sample string 21</NewPassword> <OldPassword>sample string 20</OldPassword> <Password>sample string 3</Password> <PasswordHashed>sample string 4</PasswordHashed> <Phone>sample string 13</Phone> <PositionName>sample string 35</PositionName> <PublicImagePath>sample string 14</PublicImagePath> <RememberMe>true</RememberMe> <Role>sample string 8</Role> <SmsGuid>4a435b7e-6a23-4e98-8b83-85113f9e5648</SmsGuid> <StrLoginDate>sample string 37</StrLoginDate> <TempPublicImagePath>sample string 33</TempPublicImagePath> <UpdateRemarks>sample string 43</UpdateRemarks> <UpdatedById>42</UpdatedById> <UpdatedDate>2026-03-22T08:18:46.136439+00:00</UpdatedDate> <UpdatedDateString>sample string 30</UpdatedDateString> <UserId>1</UserId> <Username>sample string 2</Username> <Website>sample string 9</Website> </User>
application/x-www-form-urlencoded
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. |