Trainees

Update a trainee's personal details. Only supplied fields change.

patch/api/public/trainees/{traineeId}

Path parameters

traineeIdstring required

Headers

Idempotency-Keystring

Optional. Send a unique key (e.g. a UUID) to make this POST safe to retry. The same key within 24h returns the original result instead of creating a duplicate.

Request body

namestring
phoneNumberstring
goalstring
heightnumber

Height in cm. Must not be negative.

dateOfBirthstring

Date of birth as an ISO date, for example 1990-04-23.

genderstring

One of: Male, Female, Other. Matching is case-insensitive, so "male" is accepted and stored as "Male".

activityLevelstring

One of: Sedentary, Lightly Active, Moderately Active, Very Active, Extremely Active. Matching is case-insensitive. Feeds the TDEE calculation, so changing it changes the calorie targets derived for this trainee. Weight is NOT set here: it is a dated history, use POST /trainees/{traineeId}/body-metrics.

injuriesstring
healthConditionsstring
allergiesstring
foodPreferencesstring
foodDislikesstring

Response

Successful response

Changes

No recorded changes to this endpoint across all 1 revision of this API.