# Merge user

You can merge users using REST API. Request requires providing the main user to which attribute values from other users will be merged.

In case multiple users have a value for the same attribute, the value will be taken first from the user to whom the values are to be merged, and then from the user with the lowest ID value.

POST /users/merge/

Attributes Type Required Description
parent int yes User to which attributes will be merged
users_list list of ints yes List of users whose attribute values will be merged to the user given as "parent"

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X POST -H "Authorization: Token <your_64_char_api_key>"
     -H "Accept: */*; version=2" -H "Content-Type: application/json" -d '{
   "parent": 11, 
   "user_list": [2, 5, 6]
}' "https://<your_app_subdomain>.user.com/api/public/users/merge/"

# Response

'{"success":true}'