Set country
PUT
/config/country
const url = 'https://demo.evcc.io/api/config/country';const options = {method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '"DE"'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://demo.evcc.io/api/config/country \ --header 'Content-Type: application/json' \ --data '"DE"'Set the site country. Used for region-specific hints and defaults. Empty string clears the setting.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
ISO 3166-1 alpha-2 country code
string
Example
DEResponses
Section titled “ Responses ”Success - Blank response
Invalid country code