Org Units
Org units is a concept that represents courses, subjects, parts and modules - separated by type. Only modules contain series, and series contain events. Org units are hierarchical, with parent-child relationships implemented by parentId on the org unit. For performance reasons, all org units are expected to be fetch upfront, and cached on the client side. Permissions to edit/create are granted to Course Admins by having them assigned to org units via a concept called groups, which are linked to org units by groupId. Users are linked to groups via group membership.
View role definitions to understand the permission levels.
Endpoints
| Endpoint | Description | Organisation admin | Course admin | Student | Guest |
|---|---|---|---|---|---|
| GET /api/orgunit/ | Returns all organisation units for the current app and tenant. Optionally includes series and permissions. Anonymous users can view public org units. View endpoint | ⬤ | ⬤ | ⬤ | ⬤ |
| POST /api/orgunit/ | Creates a new organisation unit. Only organisation admins or permitted course admins can create org units. Course admins can only create org units under their group. View endpoint | ⬤ | ◖ | ✕ | ✕ |
| GET /api/orgunit/{orgUnitId} | Retrieves detailed information about a specific organisation unit. Only organisation admins or permitted course admins can view org units. View endpoint | ⬤ | ⬤ | ✕ | ✕ |
| PUT /api/orgunit/{orgUnitId} | Updates an organisation unit by ID. Only organisation admins or permitted course admins can update org units. Course admins must have authority for the org unit's group. View endpoint | ⬤ | ◖ | ✕ | ✕ |
| DELETE /api/orgunit/{orgUnitId} | Deletes an organisation unit by ID. Only organisation admins or permitted course admins can delete org units. Course admins must have authority for the org unit's group. View endpoint | ⬤ | ◖ | ✕ | ✕ |
Key
| Symbol | Permissions |
|---|---|
| ⬤ | Full access |
| ◖ | Access limited to Org Units specified for this user |
| ✕ | No access |