Update system URLs configuration
Mobile app
Update System URLs
Admin endpoint to update system URLs. Requires BACKEND_SECRET for authentication.
PATCH
Update system URLs configuration
Admin endpoint to update system URLs including terms and conditions, privacy policy, FAQs, and support email.Documentation Index
Fetch the complete documentation index at: https://docs.handauncle.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
This endpoint requires thex-backend-secret header with a value matching the
BACKEND_SECRET environment variable configured on the server.
Optional Headers
x-user-id: User ID of the administrator making the change (defaults to “admin”)
Request Body
All fields are optional. Only include the URLs you want to update:termsAndConditions: URL to the terms and conditions page (must be valid URL)privacyPolicy: URL to the privacy policy page (must be valid URL)faqs: URL to the FAQs page (must be valid URL)supportEmail: Support email address (must be valid email format)
Validation
- All URLs must be properly formatted (start with http:// or https://)
- Email must be in valid email format
- Invalid values will return a 400 Bad Request error
Example
Update Support Email and FAQs URL
cURL
Node.js
Python
Response
Error Responses
401 Unauthorized
Missing or invalid backend secret:400 Bad Request
Invalid URL or email format:Audit Trail
All updates are logged with:- Timestamp of the change
- User ID who made the change (from
x-user-idheader) - Fields that were modified
app_configuration collection to see the audit trail:
See Also
- Get System URLs - Retrieve current system URLs
- Update Social Media URLs - Update social media URLs
Headers
Backend secret for authentication
User ID performing the update (optional, defaults to 'admin')
Body
application/json
Response
System URLs updated successfully.
Available options:
true Example:
{
"message": "System URLs updated successfully",
"systemUrls": {
"termsAndConditions": "https://www.handauncle.com/terms",
"privacyPolicy": "https://www.handauncle.com/privacy",
"faqs": "https://help.handauncle.com/faqs",
"supportEmail": "support@handauncle.com"
}
}