fusionauth-python-client icon indicating copy to clipboard operation
fusionauth-python-client copied to clipboard

Bug Report: PATCH /api/user/registration does not work

Open gradinarot opened this issue 10 months ago • 0 comments

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}

gradinarot avatar Dec 05 '24 10:12 gradinarot