Method: accounts.patch
Permintaan HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{account.name=accounts/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
account.name |
string
Hanya output. Nama resource akun ini. Format: accounts/{account} Contoh: "accounts/100"
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Wajib. Daftar kolom yang akan diperbarui. Nama kolom harus dalam bentuk snake case (misalnya, "field_to_update"). Kolom yang dihilangkan tidak akan diperbarui. Untuk mengganti seluruh entitas, gunakan satu jalur dengan string "*" untuk mencocokkan semua kolom. Ini adalah daftar dipisahkan koma yang berisi nama-nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
Isi permintaan
Isi permintaan memuat instance Account
.
Isi respons
Jika berhasil, isi respons memuat instance Account
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/analytics.edit
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-01-14 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-14 UTC."],[[["This endpoint updates an existing Google Analytics 4 account with specified changes."],["The request must include the account name in the URL path and an update mask in the query parameters defining the fields to be modified."],["You should provide the updated account details in the request body, formatted according to the `Account` object specification."],["Successful execution results in a response containing the updated `Account` object, reflecting the applied changes."],["Authorization necessitates the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for access and modification permissions."]]],["This outlines the process for updating an account via a PATCH request to `https://analyticsadmin.googleapis.com/v1beta/{account.name=accounts/*}`. The account's name is specified in the URL path. A `updateMask` query parameter, formatted as a FieldMask, defines which fields to update. The request body and response body use the `Account` object. The process needs `https://www.googleapis.com/auth/analytics.edit` OAuth scope. This requires gRPC Transcoding.\n"]]