GET /api/v1/training/workout-plans
Retrieve a list of your own and your trainees' workout plans.
Permission | Description |
---|---|
workout_plans.view | View workout plans |
Name | Type | Required | Description |
---|---|---|---|
trainee_id | string | No | Comma-separated trainee IDs to filter |
search | string | No | Search by title or description |
page | int | No | Page number for pagination |
sort | string | No | asc for oldest, desc for latest (default: desc ) |
{
"data": [<workout plan resource>, ...],
"links": {<pagination data>},
"meta": {<pagination data>}
}
Note: The current active plan is always at the top of the list regardless of the sorting options