def update_interface(workspace_name, interface): interface_properties = get_interface_properties(interface) return server.update_interface(workspace_name, **interface_properties)
def create_interface(workspace_name, interface): """Take a workspace_name and an interface object and save it to the sever. Return the server's json response as a dictionary. """ interface_properties = get_interface_properties(interface) return server.create_interface(workspace_name, **interface_properties)