createuser
/api/createuser/
List methods: post, get
Detail methods: options, post, get, put, patch, delete
An endpoint creating a user with a notification email included. The loop is as follows:
Make a POST request with the email and optionally any other user parameters of the account you wish to create. That will send an email to containing an URL with an embedded, single-use token.
POST https://api.hexoskin.com/api/createuser/
{
"email":"newuseremail@example.com",
"password": "somepassword",
"profile": {
"fitness": {
"weight": 65,
"height": 1.65,
...
},
"gender": "M",
"date_of_birth": "1970-01-01",
}
}
The token and the uidb64 (user id in base 64) will be embedded in the notification url. When clicked, the redirect url will send the user to his profile page
Note :: this can only be used by internal applications
Fields
- email: EmailField
-
This field will default to: '' (empty string)
- first_name: CharField
-
This field may be blank
This field will default to: '' (empty string)
- last_name: CharField
-
This field may be blank
This field will default to: '' (empty string)
- password: CharField
-
This field may be blank
This field will default to: '' (empty string)
- profile: UserProfileSerializer
-
This field will default to: '' (empty string)
Filtering Options
No filtering supported
Sorting Options
No sorting supported
© 2024 by CarrĂ© Technologies Inc.