/
Merging user accounts via web service

Merging user accounts via web service

User accounts may be merged via the usermerge endpoint. A service endpiont that accepts a JSON payload via a POST command of 2 user IDs (uid).

A usermerge call accepts 3 parameters

uid_to_delete: The user ID of the source account.

uid_to_keep: The user ID of the destination account.

action: The action to be performed on the uid_to_delete account once completed. Either block or delete. Default is to block the source account.

 

This service performs irreversible actions. User caution is advised.

Return:

The service follows existing web service guidelines and additionally returns:

  • 201 created: if the merge was successful

  • 405/500 Method Not Allowed: for any method other than POST.

  • 406 Not Acceptable: with an error:

    • User to merge from (uid_to_delete) does not exist

    • User to merge to (uid_to_keep) does not exist

    • User to merge from (uid_to_delete) is blocked

    • User to merge to (uid_to_keep) is blocked

Related content

User Data - Web Service Data Structures
User Data - Web Service Data Structures
More like this
Creating a user via web service
Creating a user via web service
More like this
Creating an SSO User via Webservice
Creating an SSO User via Webservice
More like this
Web Services
More like this
Web Service Endpoints
Web Service Endpoints
Read with this
Merging Users
More like this