Update Profile
Profile
Update Profile
Create or update the authenticated user’s profile with fitness goals, body metrics, dietary preferences, and nutritional targets
PUT
Update Profile
Authentication
This endpoint requires authentication. Include a valid JWT token in the Authorization header:Request Body
User’s fitness goalAllowed values:
lose_weight, maintain_weight, gain_weightUser’s height in centimetersConstraints: Must be between 140 and 220 cm
User’s weight in kilogramsConstraints: Must be between 35 and 300 kg
User’s body typeAllowed values:
lean, normal, stocky, obeseUser’s genderAllowed values:
male, femaleNumber of meals per dayConstraints: Must be between 1 and 6
User’s physical activity levelAllowed values:
low, medium, highUser’s birth date in ISO format (YYYY-MM-DD)Constraints: User must be between 16 and 100 years old
User’s body fat percentageConstraints: Must be >= 0.0
User’s daily calorie targetConstraints: Must be >= 0.0
User’s daily protein target in gramsConstraints: Must be >= 0.0
User’s daily carbohydrate target in gramsConstraints: Must be >= 0.0
User’s daily fat target in gramsConstraints: Must be >= 0.0
List of user’s diet type preferencesAllowed values:
high_protein, low_carb, vegan, vegetarian, low_calorie, high_fiber, high_carbResponse
Returns the complete profile object with the same structure as the Get Profile endpoint.Profile ID
Associated User ID
User’s fitness goal
User’s height in centimeters
User’s weight in kilograms
User’s body type
User’s gender
Number of meals per day
User’s activity level
User’s birth date
User’s body fat percentage
User’s target calories
User’s target protein in grams
User’s target carbs in grams
User’s target fat in grams
List of taste preferences
List of dietary restrictions
List of diet types
Example Request
Example Response
Error Responses
Validation error - invalid field values
Authentication token is missing or invalid
Notes
- This endpoint performs an upsert operation - it will create a new profile if one doesn’t exist, or update the existing profile
- All names in
tastesandrestrictionsarrays are automatically converted to lowercase - The
birth_dateis validated to ensure the user is between 16 and 100 years old - Diet types must be one of the predefined enum values
