Skip to main content
Update your account preferences by sending only the fields you want to change. Omitted fields are left unchanged. You must include a valid Bearer token.

Request

PUT /user-settings
Authorization: Bearer <token>
Content-Type: application/json
tripSharingDefault
boolean
Enable or disable trip sharing by default when starting a ride.
hidePhoneNumber
boolean
Hide or reveal your phone number to drivers.
emergencyContact
string
Emergency contact phone number or name (up to 40 characters).
defaultPaymentMethod
string
Default payment method (e.g. upi, card).
autoTipEnabled
boolean
Enable or disable automatic tipping after rides.
invoiceEmailEnabled
boolean
Enable or disable email invoices after rides.
mapStyle
string
Map rendering style (e.g. standard, satellite).
avoidTolls
boolean
Whether route planning should avoid toll roads.
avoidHighways
boolean
Whether route planning should avoid highways.
navigationVoiceLanguage
string
BCP 47 language code for navigation voice prompts (e.g. en, hi).
preferredVehicleType
string
Preferred vehicle category for ride requests (e.g. mini, sedan, suv).
acPreference
string
Air conditioning preference (e.g. any, ac, non_ac).
quietRide
boolean
Prefer a quiet ride with minimal conversation.
deleteAccountRequested
boolean
Submit or retract an account deletion request.
Only the fields you include in the request body are updated. All other settings remain at their current values. You can send a request body with a single field to update just that preference.

Response

The response returns the full updated settings object. See Get Settings for the complete field reference.
id
integer
Unique ID of the settings record.
userId
integer
ID of the user these settings belong to.
tripSharingDefault
boolean
Updated trip sharing default.
hidePhoneNumber
boolean
Updated phone number visibility preference.
emergencyContact
string
Updated emergency contact.
defaultPaymentMethod
string
Updated default payment method.
autoTipEnabled
boolean
Updated auto-tip preference.
invoiceEmailEnabled
boolean
Updated invoice email preference.
mapStyle
string
Updated map style.
avoidTolls
boolean
Updated toll avoidance preference.
avoidHighways
boolean
Updated highway avoidance preference.
navigationVoiceLanguage
string
Updated navigation voice language.
preferredVehicleType
string
Updated preferred vehicle type.
acPreference
string
Updated AC preference.
quietRide
boolean
Updated quiet ride preference.
deleteAccountRequested
boolean
Updated account deletion request status.
createdAt
string
ISO 8601 timestamp of record creation.
updatedAt
string
ISO 8601 timestamp of this update.

Example

curl -X PUT http://localhost:8080/user-settings \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "quietRide": true,
    "defaultPaymentMethod": "card",
    "avoidTolls": true
  }'