dambel

دمبل

shevron
ورود | ثبت نام

API Docs / training / workout-plans / create



POST /api/v1/training/workout-plans

Create a new workout plan for yourself or a trainee.


Permissions

PermissionDescription
workout_plans.createCreate workout plan for yourself or trainee

Request Body Parameters

NameTypeRequiredDescription
titlestringYesTitle of the workout plan (max 255)
descriptionstringNoDescription (max 2000, optional)
is_activebooleanNoSet as active plan (optional, default false). It changes all other plans to false if is set to true
trainee_idintNoTrainee ID (if creating for a trainee)

Note: Current active plan will automatically get deactivated if you set is_active to true.


Response

201 Created

<workout plan resource>

Error Responses


footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube