Update deployment B2B/multi-tenancy settings
curl --request PATCH \
--url https://api.wacht.dev/settings/b2b-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"allow_workspace_creation": true,
"default_workspace_limit": 5,
"require_org_for_signup": false,
"auto_assign_org_role": "<string>",
"auto_assign_workspace_role": "<string>"
}'
{
"enabled": true,
"allow_workspace_creation": true,
"default_workspace_limit": 5,
"require_org_for_signup": false,
"auto_assign_org_role": "<string>",
"auto_assign_workspace_role": "<string>"
}
JWT Bearer token authentication using the Authorization header
Settings updated successfully
The response is of type object
.
curl --request PATCH \
--url https://api.wacht.dev/settings/b2b-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"allow_workspace_creation": true,
"default_workspace_limit": 5,
"require_org_for_signup": false,
"auto_assign_org_role": "<string>",
"auto_assign_workspace_role": "<string>"
}'
{
"enabled": true,
"allow_workspace_creation": true,
"default_workspace_limit": 5,
"require_org_for_signup": false,
"auto_assign_org_role": "<string>",
"auto_assign_workspace_role": "<string>"
}