Site User - Create
API URL | {{url}}/admin-service/site/user-add |
Method | POST |
Description | Add site user |
Input
Field Name | Type | Mandatory | Example |
firstName | String | Yes | Anokwe |
lastName | String | Yes | Wek |
phoneNumber | String | Yes | 4387XXX754 |
gender | String | No | Male |
username | String | Yes | "aonwxxx@gmail.com" |
id(Country id) | Number | Yes | 3 |
id(Timezone) | Number | Yes | 60 |
roleName | String | Yes | PHYSICIAN_PRESCRIBER |
countryCode | Number | Yes | 233 |
redRisk | String | No | false |
name(Roles) | String | Yes | PHYSICIAN_PRESCRIBER |
tenantId | Number | Yes | 174 |
Sample Input:
{ "firstName": "Anokwe", "lastName": "Wek", "phoneNumber": "4387XXX754", "gender": "", "username": "aonwXXX@gmail.com", "country": { "id": 3 }, "timezone": { "id": 60 }, "roleName": "PHYSICIAN_PRESCRIBER", "countryCode": "233", "redRisk": false, "roles": [ { "name": "PHYSICIAN_PRESCRIBER" } ], "tenantId": "174" }