phoenixlan / phoenixapi-v1

Python-based api server for a self-hosted event hosting system
GNU General Public License v3.0
2 stars 0 forks source link

Update user endpoint #37

Open petterroea opened 11 months ago

petterroea commented 11 months ago

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:

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 commented 10 months ago

hmm lets dig into this