POST api/user/lockuser

Request Information

URI Parameters

None.

Body Parameters

User
NameDescriptionTypeAdditional information
UserId

integer

None.

EmailId

string

None.

Password

string

None.

FirstName

string

None.

LastName

string

None.

PhoneNumber

integer

None.

RoleMasterId

integer

None.

PasswordToken

string

None.

PasswordTokenTime

date

None.

IsActive

boolean

None.

IsLocked

boolean

None.

PasswordUpdated

boolean

None.

InvalidLoginCount

integer

None.

grant_type

string

None.

RefreshToken

string

None.

TokenModel

TokenModel

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "EmailId": "sample string 2",
  "Password": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "PhoneNumber": 6,
  "RoleMasterId": 7,
  "PasswordToken": "sample string 8",
  "PasswordTokenTime": "2025-06-24T12:54:36.7414549+00:00",
  "IsActive": true,
  "IsLocked": true,
  "PasswordUpdated": true,
  "InvalidLoginCount": 12,
  "grant_type": "sample string 13",
  "RefreshToken": "sample string 14",
  "TokenModel": {
    "access_token": "sample string 1",
    "token_type": "sample string 2",
    "expires_in": "sample string 3",
    "issued": "sample string 4",
    "expires": "sample string 5",
    "refresh_token": "sample string 6",
    "CreatedDate": "2025-06-24T12:54:36.7414549+00:00",
    "ModifiedDate": "2025-06-24T12:54:36.7414549+00:00",
    "CreatedBy": 1,
    "ModifiedBy": 1,
    "IsActive": true,
    "IsDeleted": true
  },
  "CreatedDate": "2025-06-24T12:54:36.7414549+00:00",
  "ModifiedDate": "2025-06-24T12:54:36.7414549+00:00",
  "CreatedBy": 1,
  "ModifiedBy": 1,
  "IsDeleted": true
}

text/html

Sample:
{"UserId":1,"EmailId":"sample string 2","Password":"sample string 3","FirstName":"sample string 4","LastName":"sample string 5","PhoneNumber":6,"RoleMasterId":7,"PasswordToken":"sample string 8","PasswordTokenTime":"2025-06-24T12:54:36.7414549+00:00","IsActive":true,"IsLocked":true,"PasswordUpdated":true,"InvalidLoginCount":12,"grant_type":"sample string 13","RefreshToken":"sample string 14","TokenModel":{"access_token":"sample string 1","token_type":"sample string 2","expires_in":"sample string 3","issued":"sample string 4","expires":"sample string 5","refresh_token":"sample string 6","CreatedDate":"2025-06-24T12:54:36.7414549+00:00","ModifiedDate":"2025-06-24T12:54:36.7414549+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true},"CreatedDate":"2025-06-24T12:54:36.7414549+00:00","ModifiedDate":"2025-06-24T12:54:36.7414549+00:00","CreatedBy":1,"ModifiedBy":1,"IsDeleted":true}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SRG.Core">
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2025-06-24T12:54:36.7414549+00:00</CreatedDate>
  <IsActive>false</IsActive>
  <IsDeleted>true</IsDeleted>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2025-06-24T12:54:36.7414549+00:00</ModifiedDate>
  <EmailId>sample string 2</EmailId>
  <FirstName>sample string 4</FirstName>
  <InvalidLoginCount>12</InvalidLoginCount>
  <IsActive>true</IsActive>
  <IsLocked>true</IsLocked>
  <LastName>sample string 5</LastName>
  <Password>sample string 3</Password>
  <PasswordToken>sample string 8</PasswordToken>
  <PasswordTokenTime>2025-06-24T12:54:36.7414549+00:00</PasswordTokenTime>
  <PasswordUpdated>true</PasswordUpdated>
  <PhoneNumber>6</PhoneNumber>
  <RefreshToken>sample string 14</RefreshToken>
  <RoleMasterId>7</RoleMasterId>
  <TokenModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/SRG.Core.Token">
    <CreatedBy>1</CreatedBy>
    <CreatedDate>2025-06-24T12:54:36.7414549+00:00</CreatedDate>
    <IsActive>true</IsActive>
    <IsDeleted>true</IsDeleted>
    <ModifiedBy>1</ModifiedBy>
    <ModifiedDate>2025-06-24T12:54:36.7414549+00:00</ModifiedDate>
    <d2p1:access_token>sample string 1</d2p1:access_token>
    <d2p1:expires>sample string 5</d2p1:expires>
    <d2p1:expires_in>sample string 3</d2p1:expires_in>
    <d2p1:issued>sample string 4</d2p1:issued>
    <d2p1:refresh_token>sample string 6</d2p1:refresh_token>
    <d2p1:token_type>sample string 2</d2p1:token_type>
  </TokenModel>
  <UserId>1</UserId>
  <grant_type>sample string 13</grant_type>
</User>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'User'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.