docs: correct API component usage (#6556)

This commit is contained in:
Taesu
2025-12-05 17:07:09 -08:00
committed by GitHub
parent 69db13bcce
commit a7efc2aeb2
+2 -2
View File
@@ -102,6 +102,8 @@ type createOrganization = {
}
```
</APIMethod>
<Callout type="warn">
**Mutually Exclusive Parameters**
@@ -112,8 +114,6 @@ The `userId` and session headers cannot be used together:
**For Admins:** To create an organization on behalf of another user, you must make the API call server-side **without** passing session headers.
</Callout>
</APIMethod>
#### Restrict who can create an organization
By default, any user can create an organization. To restrict this, set the `allowUserToCreateOrganization` option to a function that returns a boolean, or directly to `true` or `false`.