class-management

Amend the live allow-list (hot-syncs to all joined apps); 409 on stale version

patch/class-management/sessions/{id}/allowlist

Request

  • Base URL
    https://api.focusbear.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

Request body

allowed_appsstring[] required
allowed_urlsstring[] required
ai_blocking_enabledboolean

Hot-toggle for the student-side AI relevance check (Mac-App#2092). When present the session field is updated in the same transactional write as the allow-list; when omitted the current value is kept.

ai_contest_enabledboolean

Hot-toggle for student AI contests, same semantics as ai_blocking_enabled (omitted = keep).

block_bypass_sitesboolean

Hot-toggle for blocking bypass sites, same semantics as ai_blocking_enabled (omitted = keep).

expected_allowlist_versionnumber

Optimistic concurrency token: when set and stale, the request fails with 409 Conflict so concurrent teacher tabs don't silently clobber each other.

Example request

{
  "app_identities": [
    {
      "mac_bundle_id": "com.valvesoftware.steam",
      "windows_identity": {
        "exe": "steam.exe",
        "exes": [
          "OUTLOOK.EXE",
          "olk.exe"
        ],
        "publisher": "Valve Corp."
      }
    }
  ]
}

Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.