POST Api/User/{userId}

Updates an existing user.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

The ID of the user to update.

integer

Required

Body Parameters

The updated information for the specified user.

UserUpdateParameter
NameDescriptionTypeAdditional information
FirstName

string

None.

LastName

string

None.

IsEnabled

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "IsEnabled": true
}

application/xml, text/xml

Sample:
<UserUpdateParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRecruiter.Api.Parameters">
  <FirstName>sample string 1</FirstName>
  <IsEnabled>true</IsEnabled>
  <LastName>sample string 2</LastName>
</UserUpdateParameter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The updated user.

UserResponse
NameDescriptionTypeAdditional information
Id

integer

None.

FirstName

string

None.

LastName

string

None.

IsEnabled

boolean

None.

UserName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "IsEnabled": true,
  "UserName": "sample string 5"
}

application/xml, text/xml

Sample:
<UserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRecruiter.Api.Responses">
  <FirstName>sample string 2</FirstName>
  <Id>1</Id>
  <IsEnabled>true</IsEnabled>
  <LastName>sample string 3</LastName>
  <UserName>sample string 5</UserName>
</UserResponse>