收到无效的 JSON 负载。 'policy' 处的未知名称 "KioskCustomization":找不到字段

Invalid JSON payload received. Unknown name "KioskCustomization" at 'policy': Cannot find field

我无法将 KioskCustomization 与 installType KIOSK 一起使用,出现以下错误

googleapiclient.errors.HttpError: <HttpError 400 when requesting https://androidmanagement.googleapis.com/v1/enterprises/myeidhere/policies/policy1?alt=json returned "Invalid JSON payload received. Unknown name "KioskCustomization" at 'policy': Cannot find field.". Details: "[{'@type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'field': 'policy', 'description': 'Invalid JSON payload received. Unknown name "KioskCustomization" at 'policy': Cannot find field.'}]}]">

我的政策json

   {
    "safeBootDisabled": true,
    "factoryResetDisabled": true,
    "bluetoothDisabled": true,
    "wifiConfigDisabled": true,
    "networkEscapeHatchEnabled": true,
    "addUserDisabled": true,
    "uninstallAppsDisabled": true,
    "mountPhysicalMediaDisabled": true,
    "modifyAccountsDisabled": true,
    "mobileNetworksConfigDisabled": true,
    "vpnConfigDisabled": true,
    "networkResetDisabled": true,
    "outgoingCallsDisabled": true,
    "usbFileTransferDisabled": true,
    "setWallpaperDisabled": true,
    "deviceOwnerLockScreenInfo": { 
        "defaultMessage": "some message"
    },
    "openNetworkConfiguration": {
        "NetworkConfigurations": [{
            "GUID": "a",
            "Name": "somename",
            "Type": "WiFi",
            "WiFi": {
                "SSID": "somessid",
                "Security": "WPA-PSK",
                "Passphrase": "notsharing",
                "AutoConnect": true
            }
        }]
    },
    "applications": [{
        "defaultPermissionPolicy": "GRANT",
        "installType": "FORCE_INSTALLED",
        "packageName": "com.leadschool.parentapp"
    },
    {
        "installType": "KIOSK",
        "packageName": "com.akshara.launchapp",
        "defaultPermissionPolicy": "GRANT"
    },
    {
        "installType": "FORCE_INSTALLED",
        "packageName": "letest.ncertbooks"
    },
    {
        "installType": "FORCE_INSTALLED",
        "packageName": "karnataka.board.textbooks"
    },
    {
        "installType": "FORCE_INSTALLED",
        "packageName": "com.google.android.apps.messaging"
    },
    {
        "installType": "FORCE_INSTALLED",
        "packageName": "com.amaze.filemanager"
    }],
    "KioskCustomization": {
        "powerButtonActions": "POWER_BUTTON_AVAILABLE",
        "systemNavigation": "HOME_BUTTON_ONLY",
        "statusBar": "SYSTEM_INFO_ONLY",
        "deviceSettings": "SETTINGS_ACCESS_BLOCKED"
    }
    }

乍一看我没看出什么问题,难道是因为这个案例?

在 Android 管理 API 站点上,您可以在实施之前先尝试一下,Ref

我看到密钥是 kioskCustomization 所以用小写试试 'k'

让我知道你的结果