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

From Social ID Developers
(Difference between revisions)
Jump to: navigation, search
(URL Parameters)
 
(2 intermediate revisions by one user not shown)
Line 5: Line 5:
 
Use this API when you know from an external source that two users are actually the same person.
 
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.
+
Both users must belong to the same Login App.
  
 
== Resource URL ==
 
== Resource URL ==
Line 18: Line 18:
 
! align="left" width="200px" | user_id
 
! align="left" width="200px" | user_id
 
| width="200px" | required
 
| width="200px" | required
| source user identifier. This user will be removed from the Social Login.
+
| source user identifier. This user will be removed from the database.
 
|-
 
|-
 
! align="left" width="200px" | target_id
 
! align="left" width="200px" | target_id
Line 27: Line 27:
 
== Authentication ==
 
== Authentication ==
  
This API requires Marketing Account authentication. See [[Authentication]].
+
This API requires Account authentication. See [[Authentication]].
  
 
== Examples ==
 
== Examples ==

Latest revision as of 18:09, 29 September 2022

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 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 database.
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