Skip to content

User Registration

TeusTan edited this page Jan 8, 2020 · 1 revision

Registration Endpoint

To register a user you have to POST to /users/register with the following payload:

{'name': <str>, 'email': <str>, 'password': <str>, 'organization': <str>, 'is_admin': <bool>}

Retrieve and Update User Endpoint

To retrieve a user info you have to GET to /users/<userd-id> and to update a user you use instead PATCH to the same endpoint along with a payload including the data you want to update. Here is an example of the payload to update the password of a user:

{'password': <str>}
Clone this wiki locally