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

Update user endpoint #37

Open
petterroea opened this issue Sep 15, 2023 · 1 comment
Open

Update user endpoint #37

petterroea opened this issue Sep 15, 2023 · 1 comment
Assignees

Comments

@petterroea
Copy link
Contributor

PATCH /user/:uuid

Only admin or the user in question can use it.

You should be able to send in only some values, and still modify the user. Like here: https://github.com/phoenixlan/phoenixapi-v1/blob/master/phoenixRest/views/agenda/instance.py#L56

Fields we want to allow modification of:

  • firstname
  • lastname
  • birthdate
  • gender
  • phone
  • guardian_phone
  • address
  • postal_code

We should validate these fields just like when the account is first created, so see here for help on validation: https://github.com/phoenixlan/phoenixapi-v1/blob/master/phoenixRest/views/user/__init__.py#L97

@bernes1
Copy link
Contributor

bernes1 commented Oct 16, 2023

hmm lets dig into this

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

3 participants