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.

Test Employee is a Customer Support representative.

The employee password must be 12 to 20 characters long and contain one upper-case letter, one digit, and one special character.

The name of the tenant where new employee is created.

Sample API call

To create a new employee, make the following API call.

https://auth-api.sandbox.tuumplatform.com/api/v1/employees

circle-info

Learn more about the create employeearrow-up-right endpoint in the Tuum developer portal.

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.

chevron-rightResponsehashtag

Result

As a result, a new employee with the employeeId: ID-1183 was created.

Last updated

Was this helpful?