From 26f98e3cbf44fed693d630f58dfbd472ee3f8004 Mon Sep 17 00:00:00 2001 From: aclec <56152675+aclec@users.noreply.github.com> Date: Mon, 8 Aug 2022 12:02:01 +0200 Subject: [PATCH] fix: update doc with POST request for /loginAs (#897) --- _includes/rest/users.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/rest/users.md b/_includes/rest/users.md index e08c8b1d..69c01031 100644 --- a/_includes/rest/users.md +++ b/_includes/rest/users.md @@ -629,7 +629,7 @@ Calling the endpoint requires the master key and it returns the same response fo

-curl -X GET \
+curl -X POST \
   -H "X-Parse-Application-Id: ${APPLICATION_ID}" \
   -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
   -H "X-Parse-Master-Key: ${MASTER_KEY}" \
@@ -643,7 +643,7 @@ import json,httplib,urllib
 connection = httplib.HTTPSConnection('YOUR.PARSE-SERVER.HERE', 443)
 params = urllib.urlencode({"userId":"abc123"})
 connection.connect()
-connection.request('GET', '/parse/loginAs?%s' % params, '', {
+connection.request('POST', '/parse/loginAs?%s' % params, '', {
        "X-Parse-Application-Id": "${APPLICATION_ID}",
        "X-Parse-REST-API-Key": "${REST_API_KEY}",
        "X-Parse-Master-Key": "${MASTER_KEY}",