From 934e7726e52a9882d960506eb7d896f961511c6d Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Thu, 25 Jul 2024 15:17:29 +0530 Subject: [PATCH] fixes curl command --- v2/multitenancy/users-and-tenants.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/multitenancy/users-and-tenants.mdx b/v2/multitenancy/users-and-tenants.mdx index d1e137cfd..9f50f412c 100644 --- a/v2/multitenancy/users-and-tenants.mdx +++ b/v2/multitenancy/users-and-tenants.mdx @@ -147,13 +147,13 @@ curl --location --request POST '^{coreInjector_uri_without_quotes}//r --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ --header 'Content-Type: application/json' \ --data-raw '{ - "userId": "..." + "recipeUserId": "..." }' ``` -In the above code, we are associating `userId` with the tenant with ID `TENANT_ID`. The output of the above API will have the following `status` response: +In the above code, we are associating `recipeUserId` with the tenant with ID `TENANT_ID`. The output of the above API will have the following `status` response: - `"OK"`: User association with tenant was successful - `"UNKNOWN_USER_ID_ERROR"`: The provided user ID was not one that signed up using one of SuperTokens' auth recipes. - `"EMAIL_ALREADY_EXISTS_ERROR"`: This means that the input user is one of passwordless or email password logins, and the new tenant already has a user with the same email for that login method. @@ -264,7 +264,7 @@ curl --location --request POST '^{coreInjector_uri_without_quotes}//r --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ --header 'Content-Type: application/json' \ --data-raw '{ - "userId": "..." + "recipeUserId": "..." }' ```