PATCH
/
settings
/
b2b-settings
Update B2B 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>"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Body

application/json

Response

Settings updated successfully

The response is of type object.