Open
Description
The Python client for FusionAuth does not align with the documented API endpoint for updating a user registration. The documentation specifies the endpoint as:
PATCH /api/user/registration/{userId}/{applicationId}
However, the Python client implementation only includes the userId in the URL and omits applicationId.
def patch_registration(self, user_id, request):
return self.start().uri('/api/user/registration') \
.url_segment(user_id) \
.body_handler(JSONBodyHandler(request)) \
.patch() \
.go()
The client generates the following URL:
PATCH /api/user/registration/{userId}
The client should generate the URL as documented:
PATCH /api/user/registration/{userId}/{applicationId}