Update external user info
Update or delete externalUserIdInfo
PUT
/appid-{appId}/recipe/userid/external-user-id-infoAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Header parameters
ridstringcdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsonuserIduserIdrequireduserIdTypestringType of user ID to update info for
Allowed:
SUPERTOKENSEXTERNALANYexternalUserIdInfostring | nullrequiredNew external user ID information
Responses
200Indicates success with the status property
One of:
object
statusstatusOKAllowed:
OKobject
statusstringAllowed:
UNKNOWN_MAPPING_ERROR400error code 400
string401error code 401
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT "/appid-{appId}/recipe/userid/external-user-id-info" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"userId": "fa7a0841-b533-4478-95533-0fde890c3483",
"userIdType": "SUPERTOKENS",
"externalUserIdInfo": "new external userId info"
}'const response = await fetch("/appid-{appId}/recipe/userid/external-user-id-info", {
method: "PUT",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"userId": "fa7a0841-b533-4478-95533-0fde890c3483",
"userIdType": "SUPERTOKENS",
"externalUserIdInfo": "new external userId info"
})
});import requests
response = requests.put(
"/appid-{appId}/recipe/userid/external-user-id-info",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"userId": "fa7a0841-b533-4478-95533-0fde890c3483",
"userIdType": "SUPERTOKENS",
"externalUserIdInfo": "new external userId info"
},
)Response
{
"status": "OK"
}"string""Invalid API key""Not Found""Internal Error"