Create an active Caregiver by Template name, without an invitation email
This API is intended for automated flows, such as automated tests, where a user must be able to log in right away without going through the invitation email. For regular onboarding of real users, use the regular create API, which sends an invitation email.
Creates a user that is active immediately, using the username and password supplied in the request.
Unlike the regular create API, no invitation email is sent and there is nothing for the user to accept: the credentials in this request are the user's credentials, so they can log in as soon as this call returns. The created user is therefore returned with _invitationAccepted set to true.
The template is identified by name in the path, and custom attributes can be specified in the request body.
The password must satisfy the password policy configured for the environment. A password that does not, or a username that is already taken, fails with USER_CREATION_FAILED.
MFA is applied exactly as the template configures it. If the template requires MFA, then so does this user's login, which is worth checking before using this API to create users for automated tests.
(*)This parameter is mandatory only if its optional parent attribute is defined. Click here for more information.
Request Body Parameters:
| Parameter | Type | Mandatory | Description | Example |
|---|---|---|---|---|
| <customAttribute1> | <customAttribute1Type> | false | Regular custom attribute 1 value | |
| <customAttributeN> | <customAttributeNType> | false | Regular custom attribute N value | |
| _address | object | false | ||
| _address.address1 | string | false | An address | 11 Main St. |
| _address.address2 | string | false | An address's specifics | Entry B, Apartment 1 |
| _address.city | string | false | A city | Boston |
| _address.countryCode | string | true(*) | A 2-letter country code defined in ISO-3166 | US |
| _address.state | string | false | A state | Massachusetts |
| _address.zipCode | string | false | A zipcode | 02101 |
| _credentialType | string | false | What type of credentials is used when logging in to the system. Only one type can be used. Default:PASSWORD Values:PASSWORD,OTP | |
| _dateOfBirth | string | false | A person's date of birth A UTC date in the ISO-8601 format | 2007-12-20 |
| _degree | string | false | An caregiver's name Values:MEDICAL_DOCTOR,DOCTOR_OF_OSTEOPATHY,PHYSICIAN_ASSISTANT,REGISTERED_NURSE,CLINICAL_NURSE_SPECIALISTS,NURSE_PRACTITIONER,LICENSED_PRACTICAL_NURSE,MEDICAL_ASSISTANT,NO_DEGREE,OTHER | PHYSICIAN_ASSISTANT |
| _description | string | false | A description, can be up to 5000 characters long | Lorem Ipsum |
| _email | string | false | An email address in the RFC-5322 specification | [email protected] |
| _employeeId | string | false | ||
| _gender | string | false | A persons gender Values:MALE,FEMALE,UNDISCLOSED | FEMALE |
| _locale | string | false | A person's locale Locale in the following format: {language-ISO639}-{countryCode-ISO3166} lowercase. | en-us |
| _mfa | object | false | ||
| _mfa.enabled | boolean | false | MFA login enabled or disabled. When omitted, the template's configured default is applied. | |
| _mfa.expirationInMinutes | integer | false | MFA expiration time in minutes | |
| _name | object | true | ||
| _name.firstName | string | true(*) | A person's first name | John |
| _name.lastName | string | true(*) | A person's last name | Smith |
| _ownerOrganization | object | true | ||
| _ownerOrganization.id | string | true(*) | ||
| _password | string | true | A password | Aa123456 |
| _phone | string | false | A person's phone An E.164 formatted phone number | +12345678901 |
| _username | string | true | User's username. Can be an email or a regular username. With this username you login to the system. | [email protected] or john123 |
| Path Parameters: |
| Parameter | Type | Mandatory | Description | Example |
|---|---|---|---|---|
| templateName | string | true | null |
This API requires PROTECTED_API permission(s).
