def update(domain_id, name, sensitive):
    """
    Update an existing domain

    :param domain_id:
    :param name:
    :param sensitive:
    :return:
    """
    domain = get(domain_id)
    domain.name = name
    domain.sensitive = sensitive
    database.update(domain)

    Update an existing domain

    :param domain_id:
    :param name:
    :param sensitive:
    :return:
    
lemur/domains/service.py