Update social media URLs configuration
Mobile app
Update Social Media URLs
Admin endpoint to update social media URLs. Requires BACKEND_SECRET for authentication.
PATCH
Update social media URLs configuration
Admin endpoint to update social media profile URLs for Facebook, Instagram, LinkedIn, and Twitter.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:facebook: Facebook page URL (must be valid URL)instagram: Instagram profile URL (must be valid URL)linkedin: LinkedIn company page URL (must be valid URL)twitter: Twitter/X profile URL (must be valid URL)
Validation
- All URLs must be properly formatted (start with http:// or https://)
- Invalid URLs will return a 400 Bad Request error
Example
Update Twitter URL to X.com
cURL
Node.js
Python
Response
Update Multiple URLs at Once
cURL
Node.js
Error Responses
401 Unauthorized
Missing or invalid backend secret:400 Bad Request
Invalid URL 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 Social Media URLs - Retrieve current social media URLs
- Update System URLs - Update system URLs
Headers
Backend secret for authentication
User ID performing the update (optional, defaults to 'admin')
Body
application/json
Response
Social media URLs updated successfully.
Available options:
true Example:
{
"message": "Social media URLs updated successfully",
"socialMediaUrls": {
"facebook": "https://www.facebook.com/handauncle",
"instagram": "https://instagram.com/handauncle.official",
"linkedin": "https://www.linkedin.com/company/handauncle",
"twitter": "https://x.com/handauncle"
}
}