DELETE Api/User/Merge/{userId}?mergeWithUserId={mergeWithUserId}

Deletes an existing user, but moves all related data to another user before.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

The ID of the user to delete.

integer

Required

mergeWithUserId

The ID of the user that all the information of the deleted user should get moved to.

integer

Required

Body Parameters

None.

Response Information

Resource Description

The updated/merged 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>