Open petterroea opened 11 months ago
PATCH /user/:uuid
PATCH
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
hmm lets dig into this
PATCH
/user/:uuidOnly 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