def SetConstName(const_id, name):
    return idaapi.set_enum_member_name(const_id, name)
Rename a member of enum - a symbolic constant
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetConstName