Trainees

PATCH /api/public/trainees/{traineeId}

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

Request

  • Base URL
    https://api.coach-platform.com
  • Auth
    HTTP bearer

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 operation across all 6 revisions of this API.