Create employee
Use case
In this use case, we will create a new employee with the following data set:
Use case data
API parameters with values
We will create a record for a Test Employee.
"username": "[email protected]",
"email": "[email protected]",
"firstName": "Test",
"lastName": "Employee"
Test Employee is a Customer Support representative.
"roles": [
"CUSTOMER_SERVICE"
]
The employee password must be 12 to 20 characters long and contain one upper-case letter, one digit, and one special character.
"password": "Vys%k6;)#,bab"
The name of the tenant where new employee is created.
"tenantCode": "BANK"
Sample API call
To create a new employee, make the following API call.
https://auth-api.sandbox.tuumplatform.com/api/v1/employees
Sample request
Below is an example request body of the API call for creating an employee.
{
"username": "[email protected]",
"email": "[email protected]",
"firstName": "Test",
"lastName": "Employee",
"roles": [
"CUSTOMER_SERVICE"
],
"password": "Vys%k6;)#,bab",
"tenantCode": "BANK"
}
Sample response
Below you find an example response body to the API call above.
Result
As a result, a new employee with the employeeId: ID-1183
was created.
Last updated
Was this helpful?