Skip to content

Federations

A federation is the top-level grouping in Nucleus — one hub, N spokes, all sharing a federation mode and a customer.

List federations visible to the caller

GET
/api/federations

Hub admins see only their own federations; operators see everything.

Authorizations

bearer
Type
HTTP (bearer)

Responses

Playground

Server
Authorization

Samples


Get a federation by id

GET
/api/federations/{federationId}

Authorizations

bearer
Type
HTTP (bearer)

Parameters

Path Parameters

federationId*

Federation slug or id.

Type
string
Required

Responses

Playground

Server
Authorization
Variables
Key
Value

Samples


Update federation-wide config

PATCH
/api/federations/{federationId}

Mode changes ripple into every Moodle in the federation via the local_nucleuscommon_set_federation_mode WS function. Operator-only.

Authorizations

bearer
Type
HTTP (bearer)

Parameters

Path Parameters

federationId*

Federation slug or id.

Type
string
Required

Request Body

application/json
JSON
{
}

Responses

Playground

Server
Authorization
Variables
Key
Value
Body

Samples


Powered by VitePress OpenAPI

Released under the GPL v3 license.