/api/v1/training/diet-plansRetrieve a list of your own and your trainees' diet plans.
| Permission | Description |
|---|---|
diet_plans.view | View diet plans |
| Name | Type | Required | Description |
|---|---|---|---|
trainee_id | string | No | Filter by trainee IDs (comma-separated for multiple) |
search | string | No | Search by title and description |
page | int | No | Page number for pagination |
sort | string | No | asc for oldest, desc for latest (default: desc) |
{
"data": [<diet 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
| Status | Error Type | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden | Permission error |