Method: loyaltyclass.update
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
지정된 클래스 ID로 참조되는 포인트 클래스를 업데이트합니다.
HTTP 요청
PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}
URL은 gRPC 트랜스코딩 구문을 사용합니다.
경로 매개변수
매개변수 |
resourceId |
string
클래스의 고유 식별자입니다. 이 ID는 한 발급기관의 모든 클래스에서 고유해야 합니다. 이 값은 issuer ID 형식을 따라야 합니다.identifier의 경우 전자는 Google에서 발급하며 후자는 개발자가 직접 선택합니다. 고유 식별자에는 영숫자 문자, '.', '_', '-'만 포함되어야 합니다.
|
요청 본문
요청 본문에는 LoyaltyClass
의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 LoyaltyClass
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/wallet_object.issuer
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eThis document explains how to update a loyalty class using the Google Wallet API.\u003c/p\u003e\n"],["\u003cp\u003eYou'll need to use a \u003ccode\u003ePUT\u003c/code\u003e request to the specified endpoint with the class ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a \u003ccode\u003eLoyaltyClass\u003c/code\u003e object with the updated information.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return the updated \u003ccode\u003eLoyaltyClass\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eYou need the \u003ccode\u003ehttps://www.googleapis.com/auth/wallet_object.issuer\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["The core action is updating a loyalty class using its unique `resourceId`. This is done via a `PUT` HTTP request to the specified URL. The `resourceId`, a string, is defined as a path parameter and follows a specific format. The request body must contain a `LoyaltyClass` instance, and a successful response will also contain a `LoyaltyClass` instance. Authorization requires the `wallet_object.issuer` OAuth scope. The provided url follows the grpc syntax for transcoding.\n"],null,["# Method: loyaltyclass.update\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nUpdates the loyalty class referenced by the given class ID.\n\n### HTTP request\n\n`PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `resourceId` | `string` The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |\n\n### Request body\n\nThe request body contains an instance of [LoyaltyClass](/wallet/reference/rest/v1/loyaltyclass#LoyaltyClass).\n\n### Response body\n\nIf successful, the response body contains an instance of [LoyaltyClass](/wallet/reference/rest/v1/loyaltyclass#LoyaltyClass).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/wallet_object.issuer`"]]