Skip to content

List Corrected Activities

Endpoint used to query and list corrected activities in Toolzz LMS.

Terminal window
curl --request GET \
--url 'https://kong.api.toolzz.com.br/api/reports/institution/corrected-activities?course_ids=123,456' \
--header 'Authorization: Bearer <token>'
{
"data": {
"current_page": 1,
"from": 1,
"last_page": 10,
"to": 10,
"total": 100,
"data": [
{
"activity_id": 123,
"activity_title": "<string>",
"activity_type": 9,
"course_id": 456,
"course_title": "<string>",
"student_id": 789,
"student_name": "<string>",
"student_email": "<string>",
"responsible_correction_id": 321,
"responsible_correction_name": "<string>",
"responsible_correction_email": "<string>",
"status_correction": "corrected",
"date_deliverabled": "<string>",
"date_correction": "<string>",
"average": 10,
"weighted_average": "10"
}
],
"first_page_url": "<string>",
"last_page_url": "<string>",
"next_page_url": "<string>",
"path": "<string>",
"per_page": 10,
"prev_page_url": null
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
course_idsstringExample of query by course IDs “12321,12321,321231”.No
school_idsstringExample of query by school IDs “escola_id1, escola_id2”.No
activity_idsstringActivity IDs for filtering. Example: atividade_id1, atividade_id2.No
activity_typeintActivity type. Accepts only the following values: 9: Test, 10: Deliverable.No
student_idsstringID of the user with a student profile.No
responsible_idsstringIDs of those responsible for correcting the activities. Example: resp_id1, resp_id2.No
statusstringCorrection status. Possible values: delivered: Activity delivered. correcting: Activity in correction process. corrected: Activity corrected.No
start_date_deliverabledstringStart date for the delivery of activities.No
end_date_deliverabledstringEnd date for the delivery of activities.No
order_by_columnstringSpecifies the column by which the results will be ordered.No
order_by_directionstringSorting direction. Accepts only the values: asc: Ascending. desc: Descending.No

KeyTypeDescription
dataobjectContains the paginated list of corrected activities.
data.current_pagenumberCurrent page of the list.
data.fromnumberIndex of the first item on the current page.
data.last_pagenumberTotal number of available pages.
data.tonumberIndex of the last item on the current page.
data.totalnumberTotal number of corrected activities listed.
data.dataarrayList of corrected activities.
data.data.activity_idnumberFictitious identifier of the activity.
data.data.activity_titlestringActivity title.
data.data.activity_typenumberActivity type.
data.data.course_idnumberFictitious identifier of the associated course.
data.data.course_titlestringCourse title.
data.data.student_idnumberFictitious identifier of the student.
data.data.student_namestringFictitious name of the student.
data.data.student_emailstringFictitious email of the student.
data.data.responsible_correction_idnumberIdentifier of the person responsible for the correction.
data.data.responsible_correction_namestringName of the person responsible for the correction.
data.data.responsible_correction_emailstringEmail of the person responsible for the correction.
data.data.status_correctionstringCorrection status.
data.data.date_deliverabledstringDate of delivery of the activity.
data.data.date_correctionstringDate of correction of the activity.
data.data.averagenumberAverage obtained by the student.
data.data.weighted_averagestringWeighted average of the activity.
data.first_page_urlstringURL of the first page of the list.
data.last_page_urlstringURL of the last page of the list.
data.next_page_urlstringURL of the next page of the list.
data.pathstringBase URL of the API endpoint.
data.per_pagenumberQuantity of items per page.
data.prev_page_urlstringURL of the previous page.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.