Unlink user accounts
Unlink accounts for given recipe user id
POST
/appid-{appId}/recipe/accountlinking/user/unlinkAuthorization
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/jsonrecipeUserIdstringrequiredThe recipe user ID to unlink
Responses
200Indicates success with the status and accountsUnlinked properties
One of:
object
statusstatusOKAllowed:
OKwasRecipeUserDeletedbooleanIndicates if the recipe user was deleted
wasLinkedbooleanIndicates if the accounts were linked
400error code 400
string401error code 401
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "/appid-{appId}/recipe/accountlinking/user/unlink" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipeUserId": "fa7a0841-b533-4478-9253-0fde890c576"
}'const response = await fetch("/appid-{appId}/recipe/accountlinking/user/unlink", {
method: "POST",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"recipeUserId": "fa7a0841-b533-4478-9253-0fde890c576"
})
});import requests
response = requests.post(
"/appid-{appId}/recipe/accountlinking/user/unlink",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"recipeUserId": "fa7a0841-b533-4478-9253-0fde890c576"
},
)Response
{
"status": "OK",
"wasRecipeUserDeleted": true,
"wasLinked": true
}"string""Invalid API key""Not Found""Internal Error"