← All methods

account.setTheme

Feature 10: account.setTheme — theme = light | dark | system (same storage as the web settings: se_usersettings.usersetting_theme). Response: 1. Errors: 100 (missing / invalid theme). account.getInfo returns the current value as "theme".

Parameters

Parameter Type Required Description
theme mixed no

Example

curl -s -X POST 'https://durovloh.net/api.php' \
  -d 'method=account.setTheme' \
  -d 'access_token=USER_TOKEN'