---
title: "Set country"
method: PUT
path: "/config/country"
tags: ["general"]
---

# Set country

`PUT /config/country`

## Request

- Base URL: `https://demo.evcc.io/api`
- URL: `https://demo.evcc.io/api/config/country`
- Auth: none declared

Set the site country. Used for region-specific hints and defaults. Empty string clears the setting.

## Request body

- string: ISO 3166-1 alpha-2 country code

## Response `200`

Success - Blank response

## Other responses

- `400`: Invalid country code

## Changes

- **2026-09-29** `318f59bac02d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/evcc-io/apis/evcc/changes/config/country/put.md)

---

[API](https://skmtc.dev/evcc-io/apis/evcc.md) - [All operations](https://skmtc.dev/evcc-io/apis/evcc/llms.txt) - [OpenAPI document](https://skmtc.dev/evcc-io/apis/evcc/revisions/f6589b1a9e51?raw)
