Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gradinarot opened this issue Dec 5, 2024 · 0 comments
Open

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

gradinarot opened this issue Dec 5, 2024 · 0 comments

Comments

@gradinarot
Copy link

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant