focus-mode

Update a team-shared focus mode (admin of its team only)

patch/focus-mode/shared/{focus_mode_id}

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

focus_mode_idstring required

Request body

allowed_urlsstring[]
allowed_appsstring[]
is_ai_enabledboolean

Enable or disable AI-powered URL and app evaluation for this focus mode

idstring uuid
namestring
metadataobject

Older macOS builds copy every top-level key they receive back into metadata on save, so once a newer client stores categories or app_identities they would echo a (possibly stale) copy here. The columns are the only home for those; drop the copies so no client can persist them.

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.