Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Method: enterprises.policies.patch
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memperbarui atau membuat kebijakan.
Permintaan HTTP
PATCH https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
| Parameter |
name |
string
Nama kebijakan dalam bentuk enterprises/{enterpriseId}/policies/{policyId}.
|
Parameter kueri
| Parameter |
updateMask |
string (FieldMask format)
Mask kolom yang menunjukkan kolom yang akan diperbarui. Jika tidak ditetapkan, semua kolom yang dapat diubah akan diubah. Ini adalah daftar dipisahkan koma yang berisi nama-nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo".
|
Isi permintaan
Isi permintaan memuat instance Policy.
Isi respons
Jika berhasil, isi respons memuat instance Policy.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/androidmanagement
Untuk mengetahui informasi selengkapnya, lihat OAuth 2.0 Overview.
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-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[],["This describes how to update or create a policy using a PATCH HTTP request to a specific URL. The URL path, including the enterprise and policy IDs, is defined by `name`. Optional `updateMask` query parameter specifies which policy fields to modify. The request and response bodies both utilize the `Policy` data structure. Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. The provided document details the URL structure, required parameters, and body content.\n"]]