BizKitHub
DocsAPI ReferenceAdmin/bff/admin/user-toggle-member-blocked
postAdminAdmin BFF

/bff/admin/user-toggle-member-blocked

Toggles cas__organisation_member.blocked for the user in one organisation. Block delegates to the standard blockMember policy (invalidates API keys, sends notification, enforces last-root and last-active invariants). Unblock is a silent flip with an activity log entry. Requires internal admin membership.

AdminpostBffAdminUser-toggle-member-blocked

Parameters

JSON body

Request body

application/json
userIdstringRequired

16-char external id of the user.

organisationSlugstringRequired

Slug of the organisation whose membership is being toggled.

blockedbooleanRequired

True to block the membership, false to unblock.

Response schema

1 status code documented

200Success
successbooleanRequired
blockedbooleanRequired

Response example

application/json
{
  "success": false,
  "blocked": false
}

Request example

POST /bff/admin/user-toggle-member-blocked

post
curl -X POST "https://api.bizkithub.com/bff/admin/user-toggle-member-blocked" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "userId": "example_userId",
  "organisationSlug": "example_organisationSlug",
  "blocked": false
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key