SheetSet - Save, Rename

Hello everyone,
I have a trouble when I save (add or remove) some sheets from existing sheet set, and rename the sheet set by python or dynamo package. I have searched but I didn’t find any topic about that.

Same with this feature in Revit
image
Could you please help me on this.
Thanks in advance.

@conghau.bdh Can you share your code and show the errors?

image
This is my code

Great @jbo. It works well, Could you help me how to add or remove some sheets from current sheet set. I just have an idea that delete this sheet set, and save as new sheet set include sheets which I want which same name. Do you have direct way to do that? Thanks.

Thank you very much @jbo