BizKitHub
DocsAPI ReferenceAdmin/bff/admin/set-member-root
postAdminAdmin BFF

/bff/admin/set-member-root

Additively toggles the root role on an organisation member. Other permissions and roles are left untouched. Triggers the standard root-grant audit log when transitioning from non-root to root. Requires internal admin membership.

AdminpostBffAdminSet-member-root

Parameters

JSON body

Request body

application/json
organisationSlugstringRequired

Slug of the organisation.

Exampleacme-corp
memberIdstringRequired

Wire member id (shop__contact.external_id). Pending invitations are not accepted.

Examplecust_abc123
hasRootbooleanRequired

true → grant root role, false → revoke root role and any direct root permission.

Response schema

1 status code documented

200Success
successbooleanRequired

Whether the operation succeeded.

hasRootbooleanRequired

Resulting root state on the member.

Response example

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

Request example

POST /bff/admin/set-member-root

post
curl -X POST "https://api.bizkithub.com/bff/admin/set-member-root" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "organisationSlug": "acme-corp",
  "memberId": "cust_abc123",
  "hasRoot": false
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key