Method: chromeosdevices.patch
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Aggiorna le proprietà aggiornabili di un dispositivo, ad esempio annotatedUser
, annotatedLocation
, notes
, orgUnitPath
o annotatedAssetId
. Questo metodo supporta la semantica delle patch.
Richiesta HTTP
PATCH https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
customerId |
string
L'ID univoco dell'account Google Workspace del cliente. In qualità di amministratore dell'account, puoi anche utilizzare l'alias my_customer per rappresentare il customerId del tuo account. customerId viene restituito anche all'interno della risorsa Utenti.
|
deviceId |
string
L'ID univoco del dispositivo. I deviceId vengono restituiti nella risposta del metodo chromeosdevices.list.
|
Parametri di query
Parametri |
projection |
enum (Projection )
Determina se la risposta deve includere l'elenco completo delle proprietà o solo un sottoinsieme.
|
Corpo della richiesta
Il corpo della richiesta contiene un'istanza di ChromeOsDevice
.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di ChromeOsDevice
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/admin.directory.device.chromeos
Per ulteriori informazioni, consulta la Guida all'autorizzazione.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[],[],null,["# Method: chromeosdevices.patch\n\nUpdates a device's updatable properties, such as `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch).\n\n### HTTP request\n\n`PATCH https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customerId` | `string` The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). |\n| `deviceId` | `string` The unique ID of the device. The `deviceId`s are returned in the response from the [chromeosdevices.list](https://developers.google.com/workspace/admin/v1/reference/chromeosdevices/list) method. |\n\n### Query parameters\n\n| Parameters ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `projection` | `enum (`[Projection](/workspace/admin/directory/reference/rest/v1/Projection)`)` Determines whether the response contains the full list of properties or only a subset. |\n\n### Request body\n\nThe request body contains an instance of [ChromeOsDevice](/workspace/admin/directory/reference/rest/v1/chromeosdevices#ChromeOsDevice).\n\n### Response body\n\nIf successful, the response body contains an instance of [ChromeOsDevice](/workspace/admin/directory/reference/rest/v1/chromeosdevices#ChromeOsDevice).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admin.directory.device.chromeos`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]