PUT login/users/:user id/activate

From Social ID Developers
(Difference between revisions)
Jump to: navigation, search
 
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
#REDIRECT [[PUT login/users/:user id/activate PT-BR]]
+
== Description ==
 +
 
 +
Activates an user for login.
 +
 
 +
See also:
 +
* [[PUT login/users/:user_id/deactivate]]
 +
 
 +
== Resource URL ==
 +
 
 +
  PUT https://api.socialidnow.com/v1/marketing/login/users/:user_id/activate
 +
 
 +
== Parameters ==
 +
 
 +
=== URL Parameters ===
 +
 
 +
{|
 +
! align="left" width="200px" | user_id
 +
| width="200px" | required
 +
| user identifier.
 +
|}
 +
 
 +
== Authentication ==
 +
 
 +
This API requires Login App authentication. See [[Authentication]].
 +
 
 +
== Response ==
 +
 
 +
==== Response Status ====
 +
{|
 +
! align="left" width="200px" | ok (200)
 +
| The user was activated successfully.
 +
|-
 +
! align="left" width="200px" | unauthorized (401)
 +
| The authentication is wrong. See [[Authentication]].
 +
|-
 +
! align="left" width="200px" | not_found (404)
 +
| The user was not found.
 +
|-
 +
! align="left" width="200px" | internal_server_error (500)
 +
| An unknown error happened.
 +
|}
 +
 
 +
== Examples ==
 +
 
 +
=== Request ===
 +
 
 +
Activates the user "340":
 +
 
 +
  curl -iX PUT 'https://api.socialidnow.com/v1/marketing/login/users/340/activate' \
 +
        --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf
 +
 
 +
=== Response ===
 +
 
 +
==== Response Headers ====
 +
 
 +
HTTP/1.1 200 Ok
 +
Status: 200

Latest revision as of 16:50, 30 December 2021

Contents

Description

Activates an user for login.

See also:

Resource URL

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

Parameters

URL Parameters

user_id required user identifier.

Authentication

This API requires Login App authentication. See Authentication.

Response

Response Status

ok (200) The user was activated successfully.
unauthorized (401) The authentication is wrong. See Authentication.
not_found (404) The user was not found.
internal_server_error (500) An unknown error happened.

Examples

Request

Activates the user "340":

 curl -iX PUT 'https://api.socialidnow.com/v1/marketing/login/users/340/activate' \
        --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf

Response

Response Headers

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