Skip to content

Commit

Permalink
fixes curl command
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Jul 25, 2024
1 parent eb9306b commit 934e772
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v2/multitenancy/users-and-tenants.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ curl --location --request POST '^{coreInjector_uri_without_quotes}/<TENANT_ID>/r
--header 'api-key: ^{coreInjector_api_key_without_quotes}' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": "..."
"recipeUserId": "..."
}'
```
</CoreInjector>
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.
Expand Down Expand Up @@ -264,7 +264,7 @@ curl --location --request POST '^{coreInjector_uri_without_quotes}/<TENANT_ID>/r
--header 'api-key: ^{coreInjector_api_key_without_quotes}' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": "..."
"recipeUserId": "..."
}'
```

Expand Down

0 comments on commit 934e772

Please sign in to comment.