> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.cthings.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How do I update the data Interval of a device?

The Data Interval specifies how often a device is expected to send data. This is used to determine how to automatically aggregate the data on graphs. For example, if a device is expected to send 30-minute data, setting the Data Interval to 30 minutes will ensure data is aggregated 30-minutely on graphs wherever possible. If a device only sends data daily it would not make sense to aggregate the data 30-minutely; instead, showing data aggregated daily would make more sense.

||| Changing the Data Interval does not update the frequency at which a device transmits data

## Updating the Data Interval in cThings Cloud

To update the Data Interval in cThings Cloud:

1. Navigate to your Device
2. Go to the Device menu and select *Edit Device*
3. Select the most appropriate interval form the *Data Interval* dropdown

![Updating the Data Interval of a device](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenshot-2023-06-20-at-11534_aea9h1.png)

## Updating the Data Interval using the cThings Cloud API

To update the Data Interval using the cThings Cloud API, make a POST request to the following endpoint (where the *deviceId* is the UUID of the device) with the following body:

https://api.cthings.cloud/v3/device/{deviceId} 

```
{
    "dataInterval": "<integer>"
}
```

|| The *dataInterval* is an integer in seconds. A Data Interval of 30 minutes would be 1800