BizKitHub
DocsAPI ReferenceAdmin/bff/admin/update-organisation-manager
postAdminAdmin BFF

/bff/admin/update-organisation-manager

Updates cas__organisation.parent_id on the target organisation. When managerOrganisationSlug is null, clears the manager (org is then treated as directly managed by BizKitHub). When non-null, the parent MUST hold an active integration-partner licence — assigning a random non-licensed org as parent is rejected, since the manager relation exposes support / vendor privileges. Writes a core__activity row of type admin.set_organisation_manager to INTERNAL_ORGANISATION_ID for audit. Requires internal admin membership.

AdminpostBffAdminUpdate-organisation-manager

Parameters

JSON body

Request body

application/json
organisationSlugstringRequired

Slug of the organisation whose manager (parent_id) is being changed.

Exampleacme-shop
managerOrganisationSlugstring | nullRequired

Slug of the manager organisation to assign, or null to clear the relation (managed directly by BizKitHub). When non-null, the target org MUST hold an active integration-partner licence (row in cas__white_label_licence with active = true and valid_to > now() or NULL) — assignment is otherwise rejected. An org cannot be its own manager.

One of 2:
Variant 1
string
Variant 2
null

Response schema

1 status code documented

200Success
organisationIdnumberRequired

Id of the org whose manager was updated.

parentOrganisationIdnumber | nullRequired

New parent id after the update, or null if the manager was cleared.

One of 2:
Variant 1
number
Variant 2
null

Response example

application/json
{
  "organisationId": 0
}

Request example

POST /bff/admin/update-organisation-manager

post
curl -X POST "https://api.bizkithub.com/bff/admin/update-organisation-manager" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "organisationSlug": "acme-shop",
  "managerOrganisationSlug": "7-napadu-s-r-o"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key