Reset

Resets the employee profile for a given email address, allowing the employee to select a new are and profile when they log in on the app

PUThttps://api.myhappyforce.com/api/v1/public/company/employees/reset
Body
namestring

Name of the employee

emailstring

Email of the employee

hierarchyIdstring
profilearray of EmployeeProfile (object)

Employee profile data, used for later segmentation

groupIdsarray of string

List of groups to which this user belongs

Response

OK

Body
namestring

Name of the employee

emailstring

Email of the employee

hierarchyIdstring
profilearray of EmployeeProfile (object)

Employee profile data, used for later segmentation

groupIdsarray of string

List of groups to which this user belongs

Request
const response = await fetch('https://api.myhappyforce.com/api/v1/public/company/employees/reset', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "name": "text",
  "email": "text",
  "hierarchyId": "text",
  "profile": [
    {
      "id": "text",
      "date": "2025-01-22T06:39:22.318Z",
      "valueId": "text"
    }
  ],
  "groupIds": [
    "text"
  ]
}

Last updated