TosError
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
服務條款 (ToS) 錯誤。如果使用者 (以 OAuth 憑證代表) 尚未接受最新版的零接觸註冊機制服務條款,API 方法會傳回 HTTP 403 Forbidden
狀態碼。
API 使用者只要登入零接觸註冊機制入口網站,即可接受全新或更新的《服務條款》。使用者登入時,入口網站會顯示服務條款接受面板。
JSON 表示法 |
{
"latestTosAccepted": boolean
} |
欄位 |
latestTosAccepted |
boolean
使用者是否已接受最新版的《服務條款》。發生錯誤時,值為 false 。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eAPI methods return a \u003ccode\u003e403 Forbidden\u003c/code\u003e error if the user hasn't accepted the latest Terms of Service (ToS).\u003c/p\u003e\n"],["\u003cp\u003eUsers can accept the new or updated ToS by signing into the zero-touch enrollment portal.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elatestTosAccepted\u003c/code\u003e field in the JSON representation indicates whether the user has agreed to the current ToS, with a \u003ccode\u003efalse\u003c/code\u003e value in case of an error.\u003c/p\u003e\n"]]],["The API returns a `403 Forbidden` error when a user hasn't accepted the latest Terms of Service (ToS). Users can accept the ToS via the zero-touch enrollment portal. The JSON representation for ToS status includes a boolean field, `latestTosAccepted`. This field is `false` in error responses, indicating that the user needs to accept the latest ToS. Access the zero-touch enrollment portal to accept the ToS.\n"],null,["# TosError\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA Terms of Service (ToS) error. API methods return an HTTP `403 Forbidden` status code if the user (represented by the OAuth credentials) hasn't accepted the latest version of the zero-touch enrollment ToS.\n\nAPI users can accept new or updated ToS by signing in to the zero-touch enrollment [portal](https://enterprise.google.com/android/zero-touch/customers). The portal presents aToS acceptance panel to users when they sign in.\n\n| JSON representation ||\n|------------------------------------------|---|\n| ``` { \"latestTosAccepted\": boolean } ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------|\n| `latestTosAccepted` | `boolean` Whether the user has accepted the latest version of the ToS. The value is `false` when included in an error. |"]]