Skip to main content

SMSActivity Object

Represents a safety training or awareness activity in the SMS program.
id
number
required
Unique identifier for the activity
title
string
required
Title of the SMS activity
activity_name
string
required
Descriptive name of the activity
activity_number
string
required
Official activity reference number
start_date
Date
required
Start date of the activity
end_date
Date
required
End date of the activity
start_time
string
required
Start time (HH:MM format)
end_time
string
required
End time (HH:MM format)
place
string
required
Location where the activity takes place
topics
string
required
Topics covered in the activity
objetive
string
required
Learning objectives of the activity
description
string
required
Detailed description of the activity
authorized_by
Employee
required
Employee who authorized the activity
planned_by
Employee
required
Employee who planned the activity
executed_by
string
required
Person or entity who conducted the activity
status
string
required
Current status of the activity (e.g., “PLANNED”, “IN_PROGRESS”, “COMPLETED”, “CANCELLED”)

SMSActivityAttendance Object

Tracks employee attendance for SMS activities.
sms_activity_id
number
required
ID of the associated SMS activity
employee_id
number
required
ID of the employee
attended
boolean
required
Whether the employee attended the activity

Course Object

Represents a training course (more comprehensive than an SMS activity).
id
string
required
Unique identifier for the course
name
string
required
Course name
department
Department
required
Department offering the course
description
string
required
Course description
duration
string
required
Total course duration
time
string
required
Time commitment required
start_date
Date
required
Course start date
end_date
Date
required
Course end date
start_time
string
required
Daily start time
end_time
string
required
Daily end time
course_type
string
required
Type of course (e.g., “INITIAL”, “RECURRENT”, “SPECIALIZED”)
instructor
string
Instructor name
status
string
required
Course status

SMSTraining Object

Tracks employee training status and certification.
employee
Employee
required
Employee information
course
Course
required
Course information
last_enrollment
CourseAttendance
required
Most recent enrollment record
expiration
Date
required
Training certification expiration date
status
string
required
Training status (e.g., “CURRENT”, “EXPIRED”, “EXPIRING_SOON”)
is_initial
boolean
required
Whether this is initial training (vs recurrent)

Example - SMSActivity

{
  "id": 15,
  "title": "Safety Awareness Workshop",
  "activity_name": "Human Factors in Aviation Maintenance",
  "activity_number": "SMS-ACT-2026-015",
  "start_date": "2026-03-20T00:00:00Z",
  "end_date": "2026-03-20T00:00:00Z",
  "start_time": "09:00",
  "end_time": "12:00",
  "place": "Training Room A - Main Hangar",
  "topics": "Situational awareness, communication, stress management, fatigue",
  "objetive": "Increase awareness of human factors that can lead to maintenance errors and develop mitigation strategies",
  "description": "Interactive workshop covering the 'Dirty Dozen' human factors in aviation maintenance with case studies and group discussions",
  "authorized_by": {
    "id": 5,
    "first_name": "Juan",
    "last_name": "Pérez",
    "dni": "V-12345678",
    "job_title": {
      "id": 1,
      "name": "Safety Manager"
    }
  },
  "planned_by": {
    "id": 8,
    "first_name": "María",
    "last_name": "González",
    "dni": "V-87654321",
    "job_title": {
      "id": 2,
      "name": "Safety Coordinator"
    }
  },
  "executed_by": "Dr. Carlos Mendoza - Human Factors Specialist",
  "status": "COMPLETED"
}

Example - SMSActivityAttendance

[
  {
    "sms_activity_id": 15,
    "employee_id": 42,
    "attended": true
  },
  {
    "sms_activity_id": 15,
    "employee_id": 43,
    "attended": true
  },
  {
    "sms_activity_id": 15,
    "employee_id": 44,
    "attended": false
  }
]

Build docs developers (and LLMs) love