Add User

API URL

{{url}}/fhir-user-service/users

Method

POST

Request Headers

Authorization : Bearer [token]

Description

Adds a new user

Input

Field Name

Type

Example

username

String

Healthcarezone

password

String

firstName

String

middleName

String

lastname

String

companyName

String

companyEmail

String

countryCode

String

phone

String

address

String

website

String

id(Country)

Long

name(Country)

String

code(Country)

String

id(timezone)

Long

name(timezone)

String

offset(timezone)

String

forgetPasswordCount

Integer

invalidLoginAttempts

Integer

Sample Input:

"username": "test145@ideas2it.com",
"password": "",
"firstName": "test",
"middleName": "",
"lastname": "K G",
"companyName": "ABC Inc",
"companyEmail": "test.user@abc.com",
"countryCode": "US",
"phone": "123-456-7890",
"address": "123 Main Street",
"website": "https://www.example.com",
"country": {
    "id": 1
},
"timezone": {
    "id": 1
},
"roles": [
    {
        "id": 1
    }
]

}

Sample Output:

{
    "message": "User created successfully.",
    "entity": {
        "id": 2,
        "username": "test145@ideas2it.com",
        "firstName": "test",
        "middleName": "",
        "lastname": "K G",
        "companyName": "ABC Inc",
        "companyEmail": "test.user@abc.com",
        "countryCode": "US",
        "phone": "123-456-7890",
        "address": "123 Main Street",
        "website": "https://www.example.com",
        "country": {
            "id": 1,
            "name": null,
            "code": null,
            "abbreviation": null
        },
        "timezone": {
            "id": 1,
            "offset": null,
            "description": null
        },
        "forgetPasswordCount": 0,
        "invalidLoginAttempts": 0,
        "roles": [
            {
                "id": 2,
                "name": "FHIR_User",
                "level": "2"
            }
        ],
        "authorization": null,
        "currentDate": 0,
        "isSuperUser": false,
        "createdBy": 1,
        "updatedBy": 1
    },
    "status": true,
    "entityList": null,
    "responseCode": 200,
    "totalCount": null
}

Last updated

@2024 Medtronic LABS