Update a workout plan.
| Permission | Description |
|---|---|
workout_plans.update | Update your own or trainee's workout plans |
| Name | Type | Required | Description |
|---|---|---|---|
title | string | No | Title of the workout plan (max 255) |
description | string | No | Description (max 2000, optional) |
is_active | boolean | No | Set as active plan (optional, default false). It changes all other plans to false if is set to true |
All parameters are optional. If omitted, they will not be updated.
Note: Current active plan will automatically get deactivated if you set
is_activeto true.
{
"data": { /* workout plan resource */ }
}
| Status | Description | Reference |
|---|---|---|
| 422 | Validation error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |