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

Implement users.patch RPC function #4002

Open
Tracked by #3993
mathemancer opened this issue Nov 1, 2024 · 0 comments
Open
Tracked by #3993

Implement users.patch RPC function #4002

mathemancer opened this issue Nov 1, 2024 · 0 comments
Milestone

Comments

@mathemancer
Copy link
Contributor

mathemancer commented Nov 1, 2024

We need to implement a users.patch RPC function to replace the PATCH /api/ui/v0/users/{userId}/ endpoint.

The function signature should be:

@rpc_method(name='users.patch')
@http_basic_auth_login_required
@handle_rpc_exceptions
def patch(
        *,
        user_id: int,
        user_info: SettableUserInfo,
        **kwargs
) -> UserInfo:

A superuser can patch anyone's user, and a user can patch their own user.

See the wiki for more context.

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

2 participants