Page Summary
-
This page details how to update information for a specific device using a
PATCHHTTP request to the given endpoint. -
The request requires a
deviceIdpath parameter to identify the device being updated, and it can include an optionalupdateMaskquery parameter to specify which device fields should be modified. -
The
updateMaskcan be used to update certain fields of theAmbientDevicesuch as thedisplayNameof the device. -
The request body should contain an instance of
AmbientDevice, and if successful, the response body will also contain an instance ofAmbientDevicewith the updated data. -
This operation requires the OAuth scope
https://www.googleapis.com/auth/photosambient.mediaitemsfor authorization.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates information about the specified device.
A NOT_FOUND error is returned if the device does not exist or is not owned by the user.
HTTP request
PATCH https://photosambient.googleapis.com/v1/devices/{deviceId}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
deviceId |
Required. The unique identifier for this device. |
Query parameters
| Parameters | |
|---|---|
updateMask |
Optional. The list of For example, to update the device's The special value If omitted, an implied field mask equivalent to all fields that are populated in This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of AmbientDevice.
Response body
If successful, the response body contains an instance of AmbientDevice.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/photosambient.mediaitems