## Update domain `registrar.domains.update(strdomain_name, DomainUpdateParams**kwargs) -> object` **put** `/accounts/{account_id}/registrar/domains/{domain_name}` Update individual domain. ### Parameters - `account_id: str` Identifier - `domain_name: str` Fully qualified domain name (FQDN) including the extension (e.g., `example.com`, `mybrand.app`). The domain name uniquely identifies a registration — the same domain cannot be registered twice, making it a natural idempotency key for registration requests. - `auto_renew: Optional[bool]` Auto-renew controls whether subscription is automatically renewed upon domain expiration. - `locked: Optional[bool]` Shows whether a registrar lock is in place for a domain. - `privacy: Optional[bool]` Privacy option controls redacting WHOIS information. ### Returns - `object` ### 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 ) domain = client.registrar.domains.update( domain_name="example.com", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(domain) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": {}, "success": true } ```