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

endpoint to update user #246

Closed
jocrah opened this issue Oct 9, 2022 · 0 comments · Fixed by #249
Closed

endpoint to update user #246

jocrah opened this issue Oct 9, 2022 · 0 comments · Fixed by #249

Comments

@jocrah
Copy link
Contributor

jocrah commented Oct 9, 2022

Task Description

We need an endpoint to update a user's information. This is to allow a user to update user information including other fields which are not taken when creating a user. These include jobRole, department etc.

Technical Considerations

  1. Take note of the optional fields in the users table that are not taken when a user is being created. (The role column is an intentional exception because we do not allow users to set their own roles due to security implications.)
  2. Create a PATCH users/:id endpoint with the fields noted in step 1 as optional fields

Additional Considerations

Add related tests and add corresponding documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants