System Settings

GET https://leads.qreq.com/api/settings
curl --request GET \
--url 'https://leads.qreq.com/api/settings' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "Settings retrieved successfully.", "data": { "timezone": "Asia/Karachi", "language": "en", "notifications": true, "theme": "dark", "updated_at": "2025-11-05T10:14:00.000000Z" } }
POST https://leads.qreq.com/api/settings
Parameter Einzelheiten Beschreibung
timezone ErforderlichZeichenfolge Timezone identifier (e.g., Asia/Karachi)
language ErforderlichZeichenfolge Language code (e.g., en)
notifications OptionalBoolean Enable or disable notifications
theme OptionalZeichenfolge Theme: light or dark
curl --request POST \
--url 'https://leads.qreq.com/api/settings' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "timezone": "Asia/Karachi", "language": "en", "notifications": true, "theme": "dark" }'
{ "success": true, "message": "Settings updated successfully.", "data": { "timezone": "Asia/Karachi", "language": "en", "notifications": true, "theme": "dark", "updated_at": "2025-11-05T10:14:00.000000Z" } }