Method: enterprises.devices.patch
Żądanie HTTP
PATCH https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Nazwa urządzenia w formacie enterprises/{enterpriseId}/devices/{deviceId} .
|
Parametry zapytania
Parametry |
updateMask |
string (FieldMask format)
Maska pól określająca pola do zaktualizowania. Jeśli nie ustawisz tego pola, zmodyfikowane zostaną wszystkie pola modyfikowalne. Jest to lista pełnych nazw pól rozdzielona przecinkami. Przykład: "user.displayName,photo" .
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Device
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Device
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidmanagement
Więcej informacji znajdziesz w OAuth 2.0 Overview.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-02-19 UTC.
[null,null,["Ostatnia aktualizacja: 2025-02-19 UTC."],[[["Updates a device using an HTTP PATCH request to a specific URL with required path and optional query parameters."],["Requires `https://www.googleapis.com/auth/androidmanagement` OAuth scope for authorization."],["Request and response bodies utilize the `Device` object for data transfer."],["Path parameters specify the enterprise and device, while query parameters allow for selective field updates using a field mask."],["You can find more details about the `Device` object and authorization in the provided links."]]],["This document details how to update a device using a PATCH request. The request URL structure is `https://androidmanagement.googleapis.com/v1/{name=enterprises/*/devices/*}`, using gRPC Transcoding. The `name` path parameter specifies the device. The `updateMask` query parameter indicates which fields to modify. The request and response bodies use the `Device` object. Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. The user can use the `Try it!` option to test the update.\n"]]