def SetMemberName(sid, member_offset, name):
    s = idaapi.get_struc(sid)
    if not s:
        return 0

    return idaapi.set_member_name(s, member_offset, name)
Change structure member name
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetMemberName