Method: POST
Description: Create a new family or update an existing one.
Parameters:
Example JSON payload:
{ "teneo_family_code": "TFC000123", "last_name": "Anderson", "address_1": "123", "address_2": "Main St", "city": "Cityville", "postal_code": "12345", "province": "State", "status": "Active", "primary_contact": "Michael Anderson" }
Returns:
Example Response:
{ "message": "Family created or updated successfully" }
Example Response:
{ "error": "Internal server error" }
Method: POST
Description: Create a new student.
Parameters:
Example JSON payload:
{ "teneo_student_number": "2410001", // Optional "email_address": "john.anderson@example.com", "first_name": "John", "middle_name": "Robert", "last_name": "Anderson", "preferred_name": "Johnny", "date_of_birth": "2005-05-10", "teneo_family_code": "TFC000123", "grade_level": "10", "language_preference": "English", "nationality": "American", "social_security_number": "123-45-6789", "address_1": "123", "address_2": "Main St", "city": "Cityville", "postal_code": "12345", "province": "State" }
Returns:
Example Response:
{ "message": "Student created successfully", "teneo_student_number": "2410001" }
Example Response:
{ "error": "Internal server error" }
Method: POST
Description: Create a new contact.
Parameters:
Example JSON payload:
{ "ssn": "123-45-6789", "first_name": "Alice", "last_name": "Johnson", "relationship_to_student": "Parent", "email_address": "alice@example.com", "alternative_email_address": "alice.alt@example.com", "mobile_number": "555-1234", "telephone_number": "555-5678", "whatsapp_number": "555-9012", "address_1": "123", "address_2": "Main St", "city": "Cityville", "postal_code": "12345", "province": "State", "preferred_language": "English", "contact_type": "Emergency", "teneo_family_code": "TFC000123", "country": "South African" }
Returns:
Example Response:
{ "message": "Contact created successfully" }
Example Response:
{ "error": "Internal server error" }
Method: POST
Description: Create a new application for a student.
Parameters:
Example JSON payload:
{ "teneo_student_number": "TSN001", "year": 2024, "format": "Full-time", "curriculum_alignment": "National", "teneo_family_code": "TFC000123", "subject_1": "Physics", "subject_2": "Chemistry", "subject_3": "Mathematics", "language_of_learning": "English" }
Returns: