Users

Update user profile

patch/api/users/profile

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/users/profile
  • Auth
    HTTP bearer

Request body

firstNamestring
lastNamestring
emailstring
phonestring
citystring
statestring
countrystring

ISO 3166-1 alpha-2 country code

postalCodestring
unitSystem'metric' | 'imperial'
coachDataConsentboolean

Grant or revoke consent to share data with assigned coach (MP-1)

Example request

{
  "firstName": "Jane",
  "lastName": "Doe",
  "email": "user@example.com",
  "phone": "+15551234567",
  "city": "Miami",
  "state": "FL",
  "country": "US",
  "postalCode": "33101",
  "unitSystem": "metric",
  "coachDataConsent": true
}

Response

unknown required

Example response

{
  "success": true,
  "message": "Profile updated successfully",
  "profile": {
    "user_id": 5,
    "surgery_type": "gastric_sleeve",
    "goal_weight": "150.0"
  }
}

Changes

No recorded changes to this operation across all 34 revisions of this API.