Training Plans

Partially update a training plan. Pass only fields you want to change.

BREAKING CHANGE: the plan name is now "title"; the previous "name" field has been removed. Unknown fields are dropped during validation, so a PATCH sending only "name" is rejected with 400 "No updatable fields were supplied" rather than silently doing nothing.

If the plan is attached to more than one trainee, editing it changes the plan for all of them, so the request returns 409 CONFLICT until you confirm with applyToAllSharedTrainees.

patch/api/public/training-plans/{planId}

Path parameters

planIdstring 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

titlestring
descriptionstring
level'Beginner' | 'Intermediate' | 'Advanced'
maxDurationnumber
applyToAllSharedTraineesboolean

Required (true) to edit a plan shared by multiple trainees; the change then applies to all of them. Without it, a shared plan returns 409.

Response

Successful response

Changes

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