Correct way to update blueprint?

What is the correct way to update a blueprint? I downloaded a blueprint, created a few automations, then saw the blueprint was updated. i clicked on the link on the post and tried to import it again, but got a message that the file already exists. I then deleted the blueprint (big mistake, cause it deleted the automation as well) and re-imported it. so, is there a way to update blueprints from the UI without losing automations? i ended up copying the code from the automation and pasting it over the old code. that seems to work, but wonder if there is a better way. sorry for the rook question.