...
Code Block | ||||
---|---|---|---|---|
| ||||
Create User api request body: URI: v3v2/user/create Method: POST Request body: { "request": { "firstName":"name of user", "email":"valid and unique email id", "phone":"valid phone number", "password":"user password", "username" : "unique user name. Optional", "channel" : "rootOrgchannel value (Optional)"// if user pass it , it must be valid and user will be associated with this as "PUBLIC" role. "organisationId": "" } } Note: * is username is auto generated unique value or user has to enter it - it's optional for user , if user not providing then system will generate it. * Do we need to take orgId or channel in create user to associate user with another rootOrg,.? * How to do validation for Indian phone number. As per PRD only Indian phone number is valid. * Are we taking country code as well from user , or always will associate user country code as "+91" |
...
- If user already exist in sunbird and user status is not deleted , then allow that user to do login.
- If user does not exist in sunbird then make below api call
...