<br />

# CameraImage Schema

[Nest Cam (legacy)](https://developers.google.com/nest/device-access/api/camera) [Nest Hub Max](https://developers.google.com/nest/device-access/api/display) [Nest Doorbell (legacy)](https://developers.google.com/nest/device-access/api/doorbell)

`sdm.devices.traits.CameraImage`

This trait belongs to any device that supports taking images.

<br />

## Fields


| Field | Description | Data Type |
|---|---|---|
| `maxImageResolution` | Maximum image resolution that is supported. | `https://developers.google.com/nest/device-access/traits/device/camera-image#imageresolution` |

### ImageResolution (maxImageResolution)

| Field | Description | Data Type |
|---|---|---|
| `width` | Maximum image resolution width. May also be used as a query parameter in the download URL. | `int32` Example: 1280 |
| `height` | Maximum image resolution height. May also be used as a query parameter in the download URL. | `int32` Example: 960 |

<br />

<br />

#### Sample GET request and response

### Request

```
GET /enterprises/project-id/devices/device-id
```

### Response

    {
      "name" : "enterprises/project-id/devices/device-id",
      "traits" : {
        "sdm.devices.traits.CameraImage" : {
          "maxImageResolution" : {
            "width" : 1280,
            "height" : 960
          }
        }
      }
    }

<br />

## Commands

There are no commands available for this trait.


## Errors

See the [API Error Code Reference](https://developers.google.com/nest/device-access/reference/errors/api) for
the full list of API error codes.

<br />