# Settings ## Get the current settings for the active account `network_interconnects.settings.get(SettingGetParams**kwargs) -> SettingGetResponse` **get** `/accounts/{account_id}/cni/settings` Get the current settings for the active account ### Parameters - `account_id: str` ### Returns - `class SettingGetResponse: …` - `default_asn: int` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) setting = client.network_interconnects.settings.get( account_id="account_id", ) print(setting.default_asn) ``` #### Response ```json { "default_asn": 0 } ``` ## Update the current settings for the active account `network_interconnects.settings.update(SettingUpdateParams**kwargs) -> SettingUpdateResponse` **put** `/accounts/{account_id}/cni/settings` Update the current settings for the active account ### Parameters - `account_id: str` - `default_asn: Optional[int]` ### Returns - `class SettingUpdateResponse: …` - `default_asn: int` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) setting = client.network_interconnects.settings.update( account_id="account_id", ) print(setting.default_asn) ``` #### Response ```json { "default_asn": 0 } ``` ## Domain Types ### Setting Get Response - `class SettingGetResponse: …` - `default_asn: int` ### Setting Update Response - `class SettingUpdateResponse: …` - `default_asn: int`