Skip to content

Commit d2ed938

Browse files
author
FusionAuth Automation
committed
Sync from monorepo 565c3faf9fb1
1 parent f528c9f commit d2ed938

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/main/python/fusionauth/fusionauth_client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5213,6 +5213,20 @@ def update_theme(self, theme_id, request):
52135213
.put() \
52145214
.go()
52155215

5216+
def update_two_factor(self, user_id, request):
5217+
"""
5218+
Updates the two-factor method for the given user using a JSON body.
5219+
5220+
Attributes:
5221+
user_id: The Id of the user to update.
5222+
request: The request information that contains the name and methodId along with any event information.
5223+
"""
5224+
return self.start().uri('/api/user/two-factor') \
5225+
.url_segment(user_id) \
5226+
.body_handler(JSONBodyHandler(request)) \
5227+
.put() \
5228+
.go()
5229+
52165230
def update_user(self, user_id, request):
52175231
"""
52185232
Updates the user with the given Id.

0 commit comments

Comments
 (0)