Google 會運用 AI 技術將內容翻譯成您偏好的語言,但可能會出錯。
Method: genericclass.update
透過集合功能整理內容
您可以依據偏好儲存及分類內容。
更新指定類別 ID 參照的「Generic」類別。
HTTP 要求
PUT https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 |
resourceId |
string
類別的專屬 ID。特定核發者的所有類別 ID 都不得重複。這個值必須符合 issuerID.identifier 格式,其中 issuerID 是由 Google 核發,並由您選擇 identifier。專屬 ID 只能包含英數字元、.、_ 或 -。
|
要求主體
要求主體包含 GenericClass 的例項。
回應主體
如果成功,回應主體會包含 GenericClass 的執行例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/wallet_object.issuer
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The core action is updating a Generic class using its unique ID (`resourceId`) via a PUT request to a specified URL. The `resourceId` (string) follows the format `issuerID.identifier`. The request body must contain a `GenericClass` instance, and a successful response will also return a `GenericClass` instance. The operation necessitates the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization.\n"]]