Method: loyaltyobject.update
    
    
      
    
    
      
      Tetap teratur dengan koleksi
    
    
      
      Simpan dan kategorikan konten berdasarkan preferensi Anda.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
      
        Mengupdate objek loyalitas yang dirujuk oleh ID objek yang diberikan.
      
      
        
          Permintaan HTTP
          PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}
URL menggunakan sintaksis gRPC Transcoding.
        
        
          Parameter jalur
          
            
              
              
            
            
              
                | Parameter | 
            
            
              
                | resourceId | string
 ID unik untuk objek. ID ini harus unik di semua objek dari penerbit. Nilai ini harus mengikuti format issuer ID.identifier file yang pertama diterbitkan oleh Google dan versi kedua dipilih oleh Anda. ID unik hanya boleh berisi karakter alfanumerik, '.', '_', atau '-'. | 
            
          
        
        
          Isi permintaan
          Isi permintaan memuat instance LoyaltyObject.
        
        
          Isi respons
          Jika berhasil, isi respons akan berisi instance LoyaltyObject.
        
        
          Cakupan otorisasi
          Memerlukan cakupan OAuth berikut ini:
          
            - https://www.googleapis.com/auth/wallet_object.issuer
 
  
    
    
      
       
    
    
  
  
  Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
  Terakhir diperbarui pada 2025-07-25 UTC.
  
  
  
    
      [null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[],["This describes how to update a loyalty object using a PUT request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}`, where `resourceId` uniquely identifies the object. The request body must contain a `LoyaltyObject` instance. The response body will also be a `LoyaltyObject` upon success. This action requires `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization. The `resourceId` should follow the format \u003cvar\u003eissuer ID\u003c/var\u003e.\u003cvar\u003eidentifier\u003c/var\u003e.\n"]]