Get Learner Discipline
Get learner discipline records
GET
https://integrate.d6plus.co.za/api/v1/adminplus/learnerdiscipline/{school_login_id}
Use this endpoint to fetch discipline records for one or more learners for the specified school. By default, all discipline records for the last month will be returned, regardless of the associated learners current status.
It is possible to retrieve discipline records for a single learner by providing the optional learner_id
query parameter.
It is possible to specify a different date range by providing the optional from_date
and to_date
query parameters.
The following validation applies:
- The to_date
may not be before the from_date
.
- The date range may not span more than 31 days.
Path Parameters
Name | Type | Description |
---|---|---|
school_login_id* | Integer | The login ID of the school to retrieve data from |
Query Parameters
Name | Type | Description |
---|---|---|
learner_id | Integer | The ID of a specific learner |
to_date | String | Range end date in format YYYY-MM-DD |
from_date | String | Range start date in format YYYY-MM-DD |
Headers
Name | Type | Description |
---|---|---|
HTTP-X-USERNAME* | String | As provided by d6 |
HTTP-X-PASSWORD* | String | As provided by d6 |
Examples
Last updated