Employee Profile Updated

Occurs when an employee's profile is updated, either by them or by an admin. It does not get called when an employee is created. At this time, this includes the following fields:

first_name
last_name
middle_name
address
phone
gender
birthdate
ssn
nickname

**This does not include employee_type or email.

Data includes the employee and a changed object containing all fields that were updated.

Example Payload:

{
  "event_key": "employee.profile_updated",
  "occurred_at": "2024-12-08T22:32:39.398-07:00",
  "data": {
    "employee": {
      "id": 5,
      "url": "/api/employees/5"
    },
    "changed": {
      "first_name": "John",
      "last_name": "Doe",
      "middle_name": null,
      "nickname": "JD",
      "address": {
        "apt": "",
        "zip": "123456",
        "city": "City",
        "state": "AL",
        "street": "13 Fake Street",
        "country": "US"
      },
      "phone": "(555)555-5555",
      "gender": "M",
      "birthdate": "12/25/2008
    }
  }
}