# Set the timezone usage policy windows reset in

Source: <https://everruns.com/docs/api/operations/update_cost_settings/>

[Docs](https://everruns.com/docs/)/[API reference](https://everruns.com/docs/api/)/[Operations & billing](https://everruns.com/docs/api/groups/operations-billing/)/Set the timezone usage policy windows reset in

# Set the timezone usage policy windows reset in

Preview

Set the timezone usage policy windows reset in. Windows already running keep their start; the next boundary uses the new timezone.

Public APIEverruns Cloud and self-hosted Platform

PATCH`/v1/costs/settings`

See [authentication](https://everruns.com/docs/sre/runbooks/authentication/) for credentials and permissions.

## Request Bodyrequired

Media typeapplication/json

object

**timezone**

IANA timezone, or null for UTC.

string | null

### Example generated

```json
{
  "timezone": "example"
}
```

## Responses

200Success

### 200

Success

Media typeapplication/json

The org’s cost settings.

object

**timezone**

IANA timezone (e.g. `America/Chicago`) for calendar windows: daily, weekly and monthly usage policies reset at midnight there. `null` is UTC.

string | null

### Example generated

```json
{
  "timezone": "example"
}
```

FetchcURL

Request

```js
const url = 'https://app.everruns.com/api/v1/costs/settings';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json'},
  body: '{"timezone":"example"}'
};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

Request

```sh
curl --request PATCH \
  --url https://app.everruns.com/api/v1/costs/settings \
  --header 'Content-Type: application/json' \
  --data '{ "timezone": "example" }'
```

Additional language examples require JavaScript. The default request example is available above.

200

200 · Success

```json
{
  "timezone": "string"
}
```

## Matching endpoints