The following code edits one of the properties on an existing domain:

assign
  domain = service:GetDomain("AcmeDomain")
  domain:Description = "This domain is the only domain for Acme.".
service:UpdateDomain(domain).