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

admin users can update user role mask #353

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

timcowlishaw
Copy link
Contributor

@timcowlishaw timcowlishaw commented Aug 12, 2024

Allow admins to promote or demote user roles by passing a role_mask when updating:

eg curl 'https://staging-api.smartcitizen.me/v0/users/USERNAME' -X PATCH -H 'Content-Type: application/json;charset=UTF-8' -H 'Authorization: Bearer API_TOKEN' --data-binary '{"role_mask": 2}' --compressed

@timcowlishaw timcowlishaw force-pushed the admins-can-upgrade-users-via-api branch from eb85c4a to fcf6084 Compare September 6, 2024 09:58
@timcowlishaw timcowlishaw merged commit a7f2f44 into master Sep 6, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant