Method: users.labels.patch
Menerapkan patch pada label yang ditentukan.
Permintaan HTTP
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/labels/{id}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
userId |
string
Alamat email pengguna. Nilai khusus me dapat digunakan untuk menunjukkan pengguna yang diautentikasi.
|
id |
string
ID label yang akan diperbarui.
|
Isi permintaan
Isi permintaan memuat instance Label
.
Isi respons
Jika berhasil, isi respons akan berisi instance Label
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.labels
Untuk informasi selengkapnya, lihat Panduan otorisasi.
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 2024-09-05 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-05 UTC."],[[["This endpoint allows you to update an existing label for a specific user using a PATCH request to the provided URL."],["The request requires path parameters for user ID (`userId`) and label ID (`id`), with the request body containing the updated label information."],["A successful response will return the updated label details."],["Authorization is necessary and requires one of the specified OAuth scopes related to Gmail access and modification."]]],[]]