{ "created": true, "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "school_name": "ABC Secondary School", "address": "123 Main Street, Dar es Salaam", "phone": "+255123456789", "email": "info@abcschool.ac.tz", "logo": null, "created_at": "2025-01-15T10:30:00Z", "updated_at": "2025-01-15T10:30:00Z" }}
School - Settings
Create general settings
Create initial general school settings configuration.
This endpoint can only be used once - if settings already exist, it will return an error.
Singleton Pattern:
Only one general settings instance is allowed per school
If settings already exist, use the update endpoint instead
Returns a 400 error with “Settings already exist” message if attempting to create duplicates
Required Fields:
school_name: Official name of the school
address: Physical address of the school
phone: Contact phone number
email: Official school email address
Optional Fields:
logo: School logo image file (uploaded separately)
Use Case: