Update Settings
Updates system configuration settings including common application parameters and email service configuration. This endpoint allows administrators to modify operational settings.
Endpoint
POST/v2/messages/settings
Link
Request
Headers
Authorization
Bearer <JWT>
Yes
Content-Type
application/json
Yes
Accept
application/json
Yes
Request Body (JSON)
All fields are optional - only include the settings you want to update.
settings
object
Configuration settings object.
Yes
-
→ common
object
Common application settings.
No
-
→ → enabled
boolean
System status. true = operational.
No
true
→ → appHostname
string
Backend API hostname.
No
"api.paymentsystem.com"
→ → frontHostname
string
Frontend application hostname.
No
"app.paymentsystem.com"
→ → frontName
string
Frontend display name.
No
"Payment Portal"
→ → companyName
string
Company legal name.
No
"Acme Payments Inc."
→ → companyPhone
string
Company support phone.
No
"+1-800-123-4567"
→ email
object
Email service settings.
No
-
→ → enabled
boolean
Email service status.
No
true
→ → emailPassword
string
SMTP account password.
No
"securepassword123"
→ → smtpHost
string
SMTP server hostname.
No
"smtp.gmail.com"
→ → smtpPort
integer
SMTP server port.
No
587
Example Request Body (Partial Update):
json
Example Request Body (Full Update):
json
Response (200 OK)
Returns the updated system configuration settings.
Response Fields
Same structure as the request body, showing all current settings after update.
Example Response:
json
Examples
Request (Enable Maintenance Mode)
bash
Request (Update Email Settings)
bash
Error Responses
Invalid SMTP Configuration:
json
Invalid Hostname:
json
Unauthorized:
json
Notes
Partial Updates: Only included fields are modified; omitted fields remain unchanged.
Password Masking: Response may mask passwords for security (
********).Validation: Settings are validated before application (e.g., SMTP connection test).
Immediate Effect: Changes typically take effect immediately.
Best Practices:
Test email settings before updating in production
Use maintenance mode for system updates
Keep hostnames consistent with SSL certificates
Last updated

