Method: chromeosdevices.update
Updates a device's updatable properties, such as annotatedUser
, annotatedLocation
, notes
, orgUnitPath
, or annotatedAssetId
.
HTTP request
PUT https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
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.
|
deviceId |
string
The unique ID of the device. The deviceId s are returned in the response from the chromeosdevices.list method.
|
Query parameters
Parameters |
projection |
enum (Projection )
Determines whether the response contains the full list of properties or only a subset.
|
Request body
The request body contains an instance of ChromeOsDevice
.
Response body
If successful, the response body contains an instance of ChromeOsDevice
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admin.directory.device.chromeos
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-22 UTC.
[null,null,["Last updated 2024-08-22 UTC."],[[["This API endpoint updates specific properties of a ChromeOS device, such as user, location, notes, organizational unit, or asset ID."],["The request must target a specific customer and device, identified by their respective IDs, using a PUT request to the provided URL."],["You can customize the response to include a full or partial list of properties using the `projection` query parameter."],["To utilize this endpoint, the request must be authorized with the `https://www.googleapis.com/auth/admin.directory.device.chromeos` scope."],["Both the request and successful response bodies contain a ChromeOsDevice object with the device's information."]]],["This describes updating ChromeOS device properties via a `PUT` request to `https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}`. The `customerId` and `deviceId` are required path parameters. The request body includes a `ChromeOsDevice` instance, enabling modification of fields like `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`. A `projection` query parameter can be used to limit the properties in the response, which also contains a `ChromeOsDevice` instance. Authorization requires the `https://www.googleapis.com/auth/admin.directory.device.chromeos` OAuth scope.\n"]]