Create

Create

Use this endpoint to create user
Authorized Roles : PROVIDER or ORG_ADMIN

Request
URI
POST
https://{api_host}/provider/users
COPY
Request Body
userRequestDto of type(s) application/json
Required
{
    "firstName": "string",
    "lastName": "string",
    "contactNumber": "string",
    "email": "string",
    "password": "string",
    "tenantId": "string",
    "roles": [
        "string"
    ]
}
string
firstName
Required

firstName

string
lastName
Required

lastName

string
contactNumber
Optional

contactNumber

string
email
Required

email

string As ^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[?!@#$%^&*])[A-Za-z\d?!@#$%^&*]{8,20}$
password
Required

password

string As uuid As uuid
tenantId
Optional

tenantId

array of string
roles
Required

Valid values are PROVIDER or (TENANT_ADMIN and/or TENANT_USER)

Possible values are : ORG_ADMIN, ORG_USER, PROVIDER,
Authentication
This operation uses the following authentication methods.
Responses
200

OK

Operation doesn't return any data structure

400

Bad Request

Operation doesn't return any data structure