PUT login/users/:user id/move to/:target id

(Difference between revisions)
Jump to: navigation, search
Line 27: Line 27:
 
== Authentication ==
 
== Authentication ==
  
This API requires Marketing Account authentication. See [[Authentication]].
+
This API requires Account authentication. See [[Authentication]].
  
 
== Examples ==
 
== Examples ==

Revision as of 16:41, 30 December 2021

Contents

Description

Moves the data from the user "user_id" to the user "target_id" and then removes the first, keeping only the target user. Social networks access credentials and Social Login Tokens are also moved to the target user.

Use this API when you know from an external source that two users are actually the same person.

Both users must belong to the same Social Login App.

Resource URL

  PUT https://api.socialidnow.com/v1/marketing/login/users/:user_id/move_to/:target_id

Parameters

URL Parameters

user_id required source user identifier. This user will be removed from the Social Login.
target_id required target user identifier. This user will receive all data from the source user.

Authentication

This API requires Account authentication. See Authentication.

Examples

Request

Moves data from user "340" to the user "355" and removes user "340".

 curl -X PUT 'https://api.socialidnow.com/v1/marketing/login/users/340/move_to/355' \
        --user <api_id>:<api_secret>

Response

Response Headers

HTTP/1.1 200 OK
Status: 200
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox