> For the complete documentation index, see [llms.txt](https://guide.fariaedu.com/integrations-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.fariaedu.com/integrations-portal/managebac/public-rest-apis/v2p3/coursework.md).

# Coursework

This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades.

## Get all Grades for a Class during an Academic Term

> Retrieves all gradebook grades for every student in a class during a specific academic term.\
> Each student's response includes an array of task assignments with their scores, comments, and grade conversions.\
> \
> Returned fields for each task include:\
> \- \<code>group\_mark\</code>: The percentage achieved on the task, converted using the grade scale set for the program.\
> \- \<code>score\</code>: The raw number of points a student achieved.\
> \- \<code>max\_points\</code>: The total available points for the task.\
> \- \<code>dropbox\_status\</code>: Upload status of the student submission. Only present if Dropbox Coursework Submission is enabled for the task.\
> &#x20; Values: \<code>waiting\</code>, \<code>early\</code>, \<code>on\_time\</code>, \<code>late\</code>.\
> \- \<code>binary\</code>: Completion status for binary-graded tasks. Values: \<code>completed\</code>, \<code>incompleted\</code>.\
> \- \<code>due\_date\_extension\_days\</code>: Number of extra days granted to the student for this task. Only present if an extension was given.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}}},"paths":{"/v2p3/classes/{class_id}/assessments/term/{term_id}/grades":{"get":{"summary":"Get all Grades for a Class during an Academic Term","operationId":"listGradesForClass","tags":["Coursework"],"description":"Retrieves all gradebook grades for every student in a class during a specific academic term.\nEach student's response includes an array of task assignments with their scores, comments, and grade conversions.\n\nReturned fields for each task include:\n- <code>group_mark</code>: The percentage achieved on the task, converted using the grade scale set for the program.\n- <code>score</code>: The raw number of points a student achieved.\n- <code>max_points</code>: The total available points for the task.\n- <code>dropbox_status</code>: Upload status of the student submission. Only present if Dropbox Coursework Submission is enabled for the task.\n  Values: <code>waiting</code>, <code>early</code>, <code>on_time</code>, <code>late</code>.\n- <code>binary</code>: Completion status for binary-graded tasks. Values: <code>completed</code>, <code>incompleted</code>.\n- <code>due_date_extension_days</code>: Number of extra days granted to the student for this task. Only present if an extension was given.\n","parameters":[{"name":"class_id","in":"path","description":"Unique identifier for the class.","schema":{"type":"integer"},"required":true},{"name":"term_id","in":"path","description":"Unique identifier for the academic term.","schema":{"type":"integer"},"required":true},{"name":"student_ids","in":"query","required":false,"description":"Filter results to specific students. Accepts repeated params or a comma-separated string.","style":"form","explode":true,"schema":{"type":"array","items":{"type":"integer"}}},{"name":"include_archived_students","in":"query","description":"When true, includes students who have been archived (graduated or withdrawn). Defaults to false.","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"401":{"description":"Unauthorized"},"404":{"description":"Not Found"}}}}}}
```

## Get Term Grades for a Class

> Retrieves all term grades for a class during a specific academic term. The response shape varies depending on the program type of the class:\
> \
> \<strong>IB Diploma, Career Programme, Cambridge, Advanced Placement, and other programs:\</strong>\
> Returns a \<code>grade\</code> (letter or number), optional \<code>exam\_grade\</code> (if exam grades are enabled for the term),\
> a computed \<code>average\</code> with percentage and grade, \<code>comments\</code>, and an array of custom \<code>rubrics\</code>.\
> \
> \<strong>IB Middle Years Programme (MYP):\</strong>\
> Returns criterion-based \<code>grades\</code> as a hash mapping criterion letters (A, B, C, D) to numeric values (1-8),\
> a \<code>sum\</code> of all criterion grades, optional \<code>id\_grades\</code> and \<code>id\_sum\</code> for Interdisciplinary Unit assessment,\
> optional \<code>atl\_skills\</code> for Approaches to Learning, \<code>comments\</code>, and custom \<code>rubrics\</code>.\
> \
> \<strong>IB Primary Years Programme (PYP):\</strong>\
> Returns the most detailed structure including \<code>learner\_profile\</code> with standards and criteria,\
> \<code>subjects\</code> with phases, strands, and overall assessments,\
> \<code>units\</code> with transdisciplinary themes and subject-specific assessments,\
> optional \<code>atl\_assessment\</code>, \<code>comments\</code>, and custom \<code>rubrics\</code>.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}}},"paths":{"/v2p3/classes/{class_id}/assessments/term/{term_id}/term-grades":{"get":{"summary":"Get Term Grades for a Class","operationId":"listTermGradesForClass","tags":["Coursework"],"description":"Retrieves all term grades for a class during a specific academic term. The response shape varies depending on the program type of the class:\n\n<strong>IB Diploma, Career Programme, Cambridge, Advanced Placement, and other programs:</strong>\nReturns a <code>grade</code> (letter or number), optional <code>exam_grade</code> (if exam grades are enabled for the term),\na computed <code>average</code> with percentage and grade, <code>comments</code>, and an array of custom <code>rubrics</code>.\n\n<strong>IB Middle Years Programme (MYP):</strong>\nReturns criterion-based <code>grades</code> as a hash mapping criterion letters (A, B, C, D) to numeric values (1-8),\na <code>sum</code> of all criterion grades, optional <code>id_grades</code> and <code>id_sum</code> for Interdisciplinary Unit assessment,\noptional <code>atl_skills</code> for Approaches to Learning, <code>comments</code>, and custom <code>rubrics</code>.\n\n<strong>IB Primary Years Programme (PYP):</strong>\nReturns the most detailed structure including <code>learner_profile</code> with standards and criteria,\n<code>subjects</code> with phases, strands, and overall assessments,\n<code>units</code> with transdisciplinary themes and subject-specific assessments,\noptional <code>atl_assessment</code>, <code>comments</code>, and custom <code>rubrics</code>.\n","parameters":[{"name":"class_id","in":"path","description":"Unique identifier for the class.","schema":{"type":"integer"},"required":true},{"name":"term_id","in":"path","description":"Unique identifier for the academic term.","schema":{"type":"integer"},"required":true},{"name":"student_ids","in":"query","required":false,"description":"Filter results to specific students. Accepts repeated params or a comma-separated string.","schema":{"type":"array","items":{"type":"integer"},"style":"form","explode":true}},{"name":"include_archived_students","in":"query","description":"When true, includes students who have been archived (graduated or withdrawn). Defaults to false.","required":false,"schema":{"type":"boolean"}},{"name":"unenrolled_only","in":"query","description":"When true, returns only term grades for students who are no longer enrolled in the class but still have grade records. Useful for retrieving historical data after student transfers.","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"401":{"description":"Unauthorized"},"404":{"description":"Not Found"}}}}}}
```

## Get Criteria for a Class

> This endpoint retrieves all criteria belonging to the class as specified by ID.\
> \
> Criteria define the assessment dimensions used when grading tasks. Each criterion\
> includes a title and a list of descriptors with their corresponding values.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}},"schemas":{"CriteriaResponse":{"type":"object","properties":{"criteria":{"type":"array","items":{"$ref":"#/components/schemas/CriteriaAttributes"}}}},"CriteriaAttributes":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"descriptors":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"value":{"type":"string"},"descriptor":{"type":"string"}},"additionalProperties":false},{"type":"object","properties":{"phase":{"type":"integer"},"descriptor":{"type":"string"},"min_value":{"type":"integer"},"max_value":{"type":"integer"},"formative_descriptor":{"type":"string"}},"additionalProperties":false}]}}}},"AccessDeniedError":{"type":"object","description":"Returned when the API token is missing, invalid, or has been disabled.","properties":{"error":{"type":"string","description":"Unauthorized to perform an action"}}},"NotFound":{"type":"object","description":"Returned when the requested resource cannot be found by the given ID.","properties":{"error":{"type":"string","description":"Record was not found"}}}}},"paths":{"/v2p3/classes/{id}/criteria":{"get":{"summary":"Get Criteria for a Class","operationId":"listCriteriaforClass","tags":["Coursework"],"description":"This endpoint retrieves all criteria belonging to the class as specified by ID.\n\nCriteria define the assessment dimensions used when grading tasks. Each criterion\nincludes a title and a list of descriptors with their corresponding values.\n","parameters":[{"name":"id","in":"path","description":"Unique identifier for class.","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriteriaResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessDeniedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}}}}
```

## Get Task Categories for Class

> This endpoint retrieves task categories for a class specified by class ID.\
> \
> Task categories are used to organize tasks within a class (e.g. Quiz, Homework, Essay).\
> Each category includes a display color and a weight used for grade calculations.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}},"schemas":{"TaskCategory":{"type":"object","properties":{"id":{"type":"integer","description":"Unique ID in ManageBac."},"name":{"type":"string","description":"Task category name."},"background_color":{"type":"string","description":"Background color for Task Category."},"color":{"type":"string","description":"Text color for Task Category."},"weight":{"type":"integer","description":"The weight of the Task Category."}}},"AccessDeniedError":{"type":"object","description":"Returned when the API token is missing, invalid, or has been disabled.","properties":{"error":{"type":"string","description":"Unauthorized to perform an action"}}},"NotFound":{"type":"object","description":"Returned when the requested resource cannot be found by the given ID.","properties":{"error":{"type":"string","description":"Record was not found"}}}}},"paths":{"/v2p3/classes/{id}/task_categories":{"get":{"summary":"Get Task Categories for Class","operationId":"listClassTaskCategories","tags":["Coursework"],"description":"This endpoint retrieves task categories for a class specified by class ID.\n\nTask categories are used to organize tasks within a class (e.g. Quiz, Homework, Essay).\nEach category includes a display color and a weight used for grade calculations.\n","parameters":[{"name":"id","in":"path","description":"Unique identifier for class.","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"task_categories":{"type":"array","items":{"$ref":"#/components/schemas/TaskCategory"}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessDeniedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}}}}
```

## Download a Submission File

> Redirects to a short-lived signed URL for the requested submission file. Follow the redirect to retrieve the file content. The four IDs in the path must be consistent: the asset must belong to that student's submission for that task on that class.

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}},"schemas":{"AccessDeniedError":{"type":"object","description":"Returned when the API token is missing, invalid, or has been disabled.","properties":{"error":{"type":"string","description":"Unauthorized to perform an action"}}},"NotFound":{"type":"object","description":"Returned when the requested resource cannot be found by the given ID.","properties":{"error":{"type":"string","description":"Record was not found"}}}}},"paths":{"/v2p3/classes/{class_id}/tasks/{task_id}/submissions/{student_id}/files/{asset_id}":{"get":{"summary":"Download a Submission File","operationId":"downloadSubmissionFile","tags":["Coursework"],"description":"Redirects to a short-lived signed URL for the requested submission file. Follow the redirect to retrieve the file content. The four IDs in the path must be consistent: the asset must belong to that student's submission for that task on that class.","parameters":[{"name":"class_id","in":"path","description":"Unique identifier for the class.","schema":{"type":"integer"},"required":true},{"name":"task_id","in":"path","description":"Unique identifier for the task.","schema":{"type":"integer"},"required":true},{"name":"student_id","in":"path","description":"Unique identifier for the student.","schema":{"type":"integer"},"required":true},{"name":"asset_id","in":"path","description":"Unique identifier for the file.","schema":{"type":"integer"},"required":true}],"responses":{"302":{"description":"Redirect to signed file URL"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessDeniedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}}}}
```

## List Student Submissions for a Task

> Returns one submission entry per student who has work attached to the task, across both submission mechanisms (Dropbox upload and Google Drive). Designed for incremental sync: pass \`modified\_since\` to receive only submissions whose underlying file or task work was updated after a given time.

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}},"schemas":{"Submission":{"type":"object","properties":{"id":{"type":"string","description":"Composite identifier in the form `<task_id>-<student_id>`."},"task_id":{"type":"integer","description":"ID of the task this submission belongs to."},"student_id":{"type":"integer","description":"ID of the student who owns this submission."},"mechanism":{"type":"string","description":"Submission mechanism — `dropbox` for file uploads, `google_drive` for tasks using the Google Drive integration.","enum":["dropbox","google_drive"]},"submitted_at":{"type":"string","description":"ISO 8601 timestamp of submission. For `dropbox`, the latest `created_at` among the student's files. For `google_drive`, the `submitted_at` of the underlying TaskWork — `null` for rows still in `waiting` or `in_progress` state.","nullable":true},"updated_at":{"type":"string","description":"ISO 8601 timestamp of the latest underlying change."},"locked":{"type":"boolean","description":"Whether submissions are currently locked for this student on this task."},"status":{"type":"string","description":"Submission status. Dropbox: one of `submitted`, `late`, `early_and_late`, `pending`, or `null` if the dropbox is disabled. Google Drive: one of `submitted`, `late`, `in_progress`, `waiting`.","nullable":true},"files":{"type":"array","description":"Files attached to the submission. Empty for Google Drive task_works still in `waiting` or `in_progress` state.","items":{"$ref":"#/components/schemas/SubmissionFile"}}}},"SubmissionFile":{"type":"object","properties":{"id":{"type":"integer","description":"Unique file ID in ManageBac."},"filename":{"type":"string","description":"Filename as uploaded."},"file_size":{"type":"integer","description":"File size in bytes."},"content_type":{"type":"string","description":"MIME type derived from the filename extension."},"uploaded_at":{"type":"string","description":"ISO 8601 timestamp when the file was created."},"turnitin_score":{"type":"integer","description":"Turnitin originality score, when available. `null` when Turnitin has not run or the score is non-numeric.","nullable":true},"download_path":{"type":"string","description":"Relative path to the file-download endpoint, which authorises the request and 302-redirects to a short-lived signed URL for the file's content."}}},"Meta":{"type":"object","description":"Pagination metadata included in all list (index) responses.","properties":{"current_page":{"type":"integer","description":"The page number of the current result set, starting from 1."},"total_pages":{"type":"integer","description":"The total number of pages available for this query."},"total_count":{"type":"integer","description":"The total number of records matching the query across all pages."},"per_page":{"type":"integer","description":"The number of records returned per page. Defaults to 100; can be overridden with the per_page query parameter (max 200)."}}},"AccessDeniedError":{"type":"object","description":"Returned when the API token is missing, invalid, or has been disabled.","properties":{"error":{"type":"string","description":"Unauthorized to perform an action"}}},"NotFound":{"type":"object","description":"Returned when the requested resource cannot be found by the given ID.","properties":{"error":{"type":"string","description":"Record was not found"}}}}},"paths":{"/v2p3/classes/{class_id}/tasks/{task_id}/submissions":{"get":{"summary":"List Student Submissions for a Task","operationId":"listTaskSubmissions","tags":["Coursework"],"description":"Returns one submission entry per student who has work attached to the task, across both submission mechanisms (Dropbox upload and Google Drive). Designed for incremental sync: pass `modified_since` to receive only submissions whose underlying file or task work was updated after a given time.","parameters":[{"name":"class_id","in":"path","description":"Unique identifier for the class.","schema":{"type":"integer"},"required":true},{"name":"task_id","in":"path","description":"Unique identifier for the task.","schema":{"type":"integer"},"required":true},{"name":"modified_since","in":"query","required":false,"schema":{"type":"string"},"description":"ISO 8601 timestamp; returns only submissions whose underlying file or task work was updated strictly after this time."},{"name":"page","in":"query","required":false,"schema":{"type":"integer"},"description":"Page number (default 1)."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"},"description":"Items per page (default 100, min 1, max 500)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"submissions":{"type":"array","items":{"$ref":"#/components/schemas/Submission"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessDeniedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}}}}
```

## Get a Single Student Submission

> Returns the submission for a single student on a class task, in the same shape as one element of the list endpoint's response. Returns 404 if the student has no work attached to the task.

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}},"schemas":{"Submission":{"type":"object","properties":{"id":{"type":"string","description":"Composite identifier in the form `<task_id>-<student_id>`."},"task_id":{"type":"integer","description":"ID of the task this submission belongs to."},"student_id":{"type":"integer","description":"ID of the student who owns this submission."},"mechanism":{"type":"string","description":"Submission mechanism — `dropbox` for file uploads, `google_drive` for tasks using the Google Drive integration.","enum":["dropbox","google_drive"]},"submitted_at":{"type":"string","description":"ISO 8601 timestamp of submission. For `dropbox`, the latest `created_at` among the student's files. For `google_drive`, the `submitted_at` of the underlying TaskWork — `null` for rows still in `waiting` or `in_progress` state.","nullable":true},"updated_at":{"type":"string","description":"ISO 8601 timestamp of the latest underlying change."},"locked":{"type":"boolean","description":"Whether submissions are currently locked for this student on this task."},"status":{"type":"string","description":"Submission status. Dropbox: one of `submitted`, `late`, `early_and_late`, `pending`, or `null` if the dropbox is disabled. Google Drive: one of `submitted`, `late`, `in_progress`, `waiting`.","nullable":true},"files":{"type":"array","description":"Files attached to the submission. Empty for Google Drive task_works still in `waiting` or `in_progress` state.","items":{"$ref":"#/components/schemas/SubmissionFile"}}}},"SubmissionFile":{"type":"object","properties":{"id":{"type":"integer","description":"Unique file ID in ManageBac."},"filename":{"type":"string","description":"Filename as uploaded."},"file_size":{"type":"integer","description":"File size in bytes."},"content_type":{"type":"string","description":"MIME type derived from the filename extension."},"uploaded_at":{"type":"string","description":"ISO 8601 timestamp when the file was created."},"turnitin_score":{"type":"integer","description":"Turnitin originality score, when available. `null` when Turnitin has not run or the score is non-numeric.","nullable":true},"download_path":{"type":"string","description":"Relative path to the file-download endpoint, which authorises the request and 302-redirects to a short-lived signed URL for the file's content."}}},"AccessDeniedError":{"type":"object","description":"Returned when the API token is missing, invalid, or has been disabled.","properties":{"error":{"type":"string","description":"Unauthorized to perform an action"}}},"NotFound":{"type":"object","description":"Returned when the requested resource cannot be found by the given ID.","properties":{"error":{"type":"string","description":"Record was not found"}}}}},"paths":{"/v2p3/classes/{class_id}/tasks/{task_id}/submissions/{student_id}":{"get":{"summary":"Get a Single Student Submission","operationId":"getTaskSubmission","tags":["Coursework"],"description":"Returns the submission for a single student on a class task, in the same shape as one element of the list endpoint's response. Returns 404 if the student has no work attached to the task.","parameters":[{"name":"class_id","in":"path","description":"Unique identifier for the class.","schema":{"type":"integer"},"required":true},{"name":"task_id","in":"path","description":"Unique identifier for the task.","schema":{"type":"integer"},"required":true},{"name":"student_id","in":"path","description":"Unique identifier for the student.","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"submission":{"$ref":"#/components/schemas/Submission"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessDeniedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}}}}
```

## Get Tasks for a Class

> This endpoint retrieves all tasks belonging to the class as specified by ID.\
> If term ID is not specified, all tasks that the term class covers will be returned.\
> \
> Each task includes its assessment type, category, assigned students, and scoring configuration.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}}},"paths":{"/v2p3/classes/{id}/tasks":{"get":{"summary":"Get Tasks for a Class","operationId":"listTasksforClass","tags":["Coursework"],"description":"This endpoint retrieves all tasks belonging to the class as specified by ID.\nIf term ID is not specified, all tasks that the term class covers will be returned.\n\nEach task includes its assessment type, category, assigned students, and scoring configuration.\n","parameters":[{"name":"id","in":"path","description":"Unique identifier for class.","schema":{"type":"integer"},"required":true},{"name":"term_id","in":"query","description":"Unique identifier for term.","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"401":{"description":"Unauthorized"},"404":{"description":"Not Found"}}}}}}
```

## Get a Task for a Class

> This endpoint retrieves a task as specified by task ID and class ID.\
> \
> Returns the full detail for a single task including its assessment configuration,\
> category, and assigned students.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}}},"paths":{"/v2p3/classes/{class_id}/tasks/{id}":{"get":{"summary":"Get a Task for a Class","operationId":"getTasksByIDforClass","tags":["Coursework"],"description":"This endpoint retrieves a task as specified by task ID and class ID.\n\nReturns the full detail for a single task including its assessment configuration,\ncategory, and assigned students.\n","parameters":[{"name":"id","in":"path","description":"Unique identifier for task.","schema":{"type":"integer"},"required":true},{"name":"class_id","in":"path","description":"Unique identifier for class.","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"401":{"description":"Unauthorized"},"404":{"description":"Not Found"}}}}}}
```

## Update a Task for a Class

> This endpoint updates a task for a class as specified by class ID and task ID.\
> \
> All task attributes can be modified including assessment configurations,\
> assigned students, dropbox settings, and unit associations.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}},"schemas":{"AccessDeniedError":{"type":"object","description":"Returned when the API token is missing, invalid, or has been disabled.","properties":{"error":{"type":"string","description":"Unauthorized to perform an action"}}},"NotFound":{"type":"object","description":"Returned when the requested resource cannot be found by the given ID.","properties":{"error":{"type":"string","description":"Record was not found"}}},"CoreTaskAttributes":{"type":"object","required":["author_id","name","due_date","assessment_type_id"],"properties":{"author_id":{"type":"integer"},"name":{"type":"string"},"due_date":{"type":"string","format":"date-time"},"assessment_type_id":{"type":"integer"},"task_category_id":{"type":"integer"},"notify_group":{"type":"boolean"},"notify_parents":{"type":"boolean"},"unit_id":{"type":"integer"},"lesson_experience_id":{"type":"integer"},"hl":{"type":"boolean"},"sl":{"type":"boolean"},"notes":{"type":"string"},"enable_dropbox":{"type":"boolean"},"enable_turnitin":{"type":"boolean"},"dropbox_opening_days":{"type":"integer"},"assigned_student_ids":{"type":"array","items":{"type":"integer"}},"draft":{"type":"boolean"},"hide_assessment_results":{"type":"boolean","description":"When true, assessment results are hidden from students and parents."},"phase":{"type":"integer"},"assessments":{"type":"object","properties":{"criteria":{"type":"object","properties":{"enabled":{"type":"boolean"},"criterion_ids":{"type":"array","items":{"type":"integer"}}}},"points":{"type":"object","properties":{"enabled":{"type":"boolean"},"max_points":{"type":"integer"}}},"binary":{"type":"object","properties":{"enabled":{"type":"boolean"}}},"comment":{"type":"object","properties":{"enabled":{"type":"boolean"}}}}}}}}},"paths":{"/v2p3/classes/{class_id}/tasks/{id}":{"put":{"summary":"Update a Task for a Class","operationId":"updateTaskforClass","tags":["Coursework"],"description":"This endpoint updates a task for a class as specified by class ID and task ID.\n\nAll task attributes can be modified including assessment configurations,\nassigned students, dropbox settings, and unit associations.\n","parameters":[{"name":"class_id","in":"path","description":"Unique identifier for class.","schema":{"type":"integer"},"required":true},{"name":"id","in":"path","description":"Unique identifier for task.","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessDeniedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"due_date":{"type":"array","items":{"type":"string"}},"task_category_id":{"type":"array","items":{"type":"string"}},"sl":{"type":"array","items":{"type":"string"}},"hl":{"type":"array","items":{"type":"string"}}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"core_task":{"$ref":"#/components/schemas/CoreTaskAttributes"}},"required":["core_task"]}}},"required":true,"description":"Task attributes to update"}}}}}
```

## Delete a Task for a Class

> This endpoint deletes a task for a class as specified by class ID and task ID.\
> \
> Once deleted, the task and all associated assessment data are permanently removed.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}}},"paths":{"/v2p3/classes/{class_id}/tasks/{id}":{"delete":{"summary":"Delete a Task for a Class","operationId":"deleteTaskforClass","tags":["Coursework"],"description":"This endpoint deletes a task for a class as specified by class ID and task ID.\n\nOnce deleted, the task and all associated assessment data are permanently removed.\n","parameters":[{"name":"class_id","in":"path","description":"Unique identifier for class.","schema":{"type":"integer"},"required":true},{"name":"id","in":"path","description":"Unique identifier for task.","schema":{"type":"integer"},"required":true}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized"},"404":{"description":"Not Found"}}}}}}
```

## Partially Update a Task for a Class

> This endpoint partially updates a task. Only fields present in the request body are changed; omitted fields retain their current values. Send a field as null to explicitly clear it.

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}},"schemas":{"AccessDeniedError":{"type":"object","description":"Returned when the API token is missing, invalid, or has been disabled.","properties":{"error":{"type":"string","description":"Unauthorized to perform an action"}}},"NotFound":{"type":"object","description":"Returned when the requested resource cannot be found by the given ID.","properties":{"error":{"type":"string","description":"Record was not found"}}},"CoreTaskPatchAttributes":{"type":"object","properties":{"author_id":{"type":"integer"},"name":{"type":"string"},"due_date":{"type":"string","format":"date-time"},"assessment_type_id":{"type":"integer"},"task_category_id":{"type":"integer"},"notify_group":{"type":"boolean"},"notify_parents":{"type":"boolean"},"unit_id":{"type":"integer"},"lesson_experience_id":{"type":"integer"},"hl":{"type":"boolean"},"sl":{"type":"boolean"},"notes":{"type":"string"},"enable_dropbox":{"type":"boolean"},"enable_turnitin":{"type":"boolean"},"dropbox_opening_days":{"type":"integer"},"assigned_student_ids":{"type":"array","items":{"type":"integer"}},"draft":{"type":"boolean"},"hide_assessment_results":{"type":"boolean","description":"When true, assessment results are hidden from students and parents."},"phase":{"type":"integer"},"assessments":{"type":"object","properties":{"criteria":{"type":"object","properties":{"enabled":{"type":"boolean"},"criterion_ids":{"type":"array","items":{"type":"integer"}}}},"points":{"type":"object","properties":{"enabled":{"type":"boolean"},"max_points":{"type":"integer"}}},"binary":{"type":"object","properties":{"enabled":{"type":"boolean"}}},"comment":{"type":"object","properties":{"enabled":{"type":"boolean"}}}}}}}}},"paths":{"/v2p3/classes/{class_id}/tasks/{id}":{"patch":{"summary":"Partially Update a Task for a Class","operationId":"partialUpdateTaskforClass","tags":["Coursework"],"description":"This endpoint partially updates a task. Only fields present in the request body are changed; omitted fields retain their current values. Send a field as null to explicitly clear it.","parameters":[{"name":"class_id","in":"path","description":"Unique identifier for class.","schema":{"type":"integer"},"required":true},{"name":"id","in":"path","description":"Unique identifier for task.","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"Omitting required fields succeeds on PATCH","content":{"application/json":{"schema":{"type":"object","properties":{"task":{"type":"object","additionalProperties":true}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessDeniedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"Unprocessable Entity — validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"object","properties":{"due_date":{"type":"array","items":{"type":"string"}},"sl":{"type":"array","items":{"type":"string"}},"hl":{"type":"array","items":{"type":"string"}}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"core_task":{"$ref":"#/components/schemas/CoreTaskPatchAttributes"}},"required":["core_task"]}}},"required":true,"description":"Task attributes to partially update"}}}}}
```

## Get Student Assessment Results for a Task and Class

> This endpoint retrieves all assessment result scores belonging to a class as specified by ID.\
> If term ID is not specified, all assessed tasks that the term class covers will be returned.\
> \
> Optional properties:\
> \
> \*\*Assessments:\*\*\
> \- \`dropbox\_status\` - Student Dropbox Submission status for a task if enabled<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}}},"paths":{"/v2p3/classes/{class_id}/tasks/{id}/students":{"get":{"summary":"Get Student Assessment Results for a Task and Class","operationId":"listStudentAssessmentResultsForClassTask","tags":["Coursework"],"description":"This endpoint retrieves all assessment result scores belonging to a class as specified by ID.\nIf term ID is not specified, all assessed tasks that the term class covers will be returned.\n\nOptional properties:\n\n**Assessments:**\n- `dropbox_status` - Student Dropbox Submission status for a task if enabled\n","parameters":[{"name":"id","in":"path","description":"Unique identifier for task.","schema":{"type":"integer"},"required":true},{"name":"class_id","in":"path","description":"Unique identifier for class.","schema":{"type":"integer"},"required":true},{"name":"student_ids","in":"query","required":false,"description":"List of student ids. Accepts repeated params or a comma-separated string.","style":"form","explode":true,"schema":{"type":"array","items":{"type":"integer"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"401":{"description":"Unauthorized"},"404":{"description":"Not Found"}}}}}}
```

## Bulk Delete Grades for Students for a Task

> Destroys a grade for a specific student on a given task. There is no undo.\
> Applies to all Students if no \<code>student\_ids\</code> are provided.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}},"schemas":{"BulkStudentTaskGradeResponse":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Unique identifier for a student in ManageBac"},"status":{"type":"string","description":"Response status for a student"},"error":{"type":"object","description":"Error details if any"}}}},"AccessDeniedError":{"type":"object","description":"Returned when the API token is missing, invalid, or has been disabled.","properties":{"error":{"type":"string","description":"Unauthorized to perform an action"}}},"NotFound":{"type":"object","description":"Returned when the requested resource cannot be found by the given ID.","properties":{"error":{"type":"string","description":"Record was not found"}}},"BulkDestroyStudentTaskGradeRequest":{"type":"object","properties":{"student_ids":{"type":"array","items":{"type":"integer"},"description":"List of student IDs whose grades and submissions will be reset"}}}}},"paths":{"/v2p3/tasks/{task_id}/students":{"delete":{"summary":"Bulk Delete Grades for Students for a Task","operationId":"BulkResetStudentsTaskGrades","tags":["Coursework"],"description":"Destroys a grade for a specific student on a given task. There is no undo.\nApplies to all Students if no <code>student_ids</code> are provided.\n","parameters":[{"name":"task_id","in":"path","description":"Unique identifier for a task.","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkStudentTaskGradeResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessDeniedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDestroyStudentTaskGradeRequest"}}}}}}}}
```

## Create a Task for a Class

> This endpoint creates a task for a class as specified by class ID.\
> \
> The request body must include the task attributes such as author, due date,\
> assessment type, and category. Optionally, assigned students and assessment\
> configurations (points, criteria, binary, comment) can be specified.<br>

```json
{"openapi":"3.0.3","info":{"title":"API V2P3","version":"v2p3"},"tags":[{"name":"Coursework","description":"This group refers to entities tied to student learning delivery or feedback, such as Tasks and Grades."}],"servers":[{"url":"https://api.managebac.com","description":"CA ManageBac API server."},{"url":"https://api.managebac.cn","description":"CN ManageBac API server."},{"url":"https://api.us.managebac.com","description":"US1 ManageBac API server."},{"url":"https://api.managebac.us","description":"US2 ManageBac API server."},{"url":"https://api.managebactest.com","description":"UAT ManageBac API server."},{"url":"https://{Host}","variables":{"Host":{"default":"api.devel.managebac.com","enum":["api.devel.managebac.com","api-faria.devel.managebac.com","api.managebac.dev"]}}}],"security":[{"bearerAuth":[]},{"authTokenQuery":[]},{"authTokenHeader":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as `Bearer <token>`."},"authTokenQuery":{"type":"apiKey","name":"auth_token","in":"query","description":"Your V2 API authentication token may be passed in the parameters. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."},"authTokenHeader":{"type":"apiKey","name":"auth-token","in":"header","description":"Your V2 API authentication token may be passed in the header. To protect your key, use [environment variables](https://cloud.google.com/docs/authentication/api-keys#securing_an_api_key)."}},"schemas":{"AccessDeniedError":{"type":"object","description":"Returned when the API token is missing, invalid, or has been disabled.","properties":{"error":{"type":"string","description":"Unauthorized to perform an action"}}},"NotFound":{"type":"object","description":"Returned when the requested resource cannot be found by the given ID.","properties":{"error":{"type":"string","description":"Record was not found"}}},"CoreTaskAttributes":{"type":"object","required":["author_id","name","due_date","assessment_type_id"],"properties":{"author_id":{"type":"integer"},"name":{"type":"string"},"due_date":{"type":"string","format":"date-time"},"assessment_type_id":{"type":"integer"},"task_category_id":{"type":"integer"},"notify_group":{"type":"boolean"},"notify_parents":{"type":"boolean"},"unit_id":{"type":"integer"},"lesson_experience_id":{"type":"integer"},"hl":{"type":"boolean"},"sl":{"type":"boolean"},"notes":{"type":"string"},"enable_dropbox":{"type":"boolean"},"enable_turnitin":{"type":"boolean"},"dropbox_opening_days":{"type":"integer"},"assigned_student_ids":{"type":"array","items":{"type":"integer"}},"draft":{"type":"boolean"},"hide_assessment_results":{"type":"boolean","description":"When true, assessment results are hidden from students and parents."},"phase":{"type":"integer"},"assessments":{"type":"object","properties":{"criteria":{"type":"object","properties":{"enabled":{"type":"boolean"},"criterion_ids":{"type":"array","items":{"type":"integer"}}}},"points":{"type":"object","properties":{"enabled":{"type":"boolean"},"max_points":{"type":"integer"}}},"binary":{"type":"object","properties":{"enabled":{"type":"boolean"}}},"comment":{"type":"object","properties":{"enabled":{"type":"boolean"}}}}}}}}},"paths":{"/v2p3/classes/{class_id}/tasks":{"post":{"summary":"Create a Task for a Class","operationId":"createTaskforClass","tags":["Coursework"],"description":"This endpoint creates a task for a class as specified by class ID.\n\nThe request body must include the task attributes such as author, due date,\nassessment type, and category. Optionally, assigned students and assessment\nconfigurations (points, criteria, binary, comment) can be specified.\n","parameters":[{"name":"class_id","in":"path","description":"Unique identifier for class.","schema":{"type":"integer"},"required":true}],"responses":{"201":{"description":"Created","content":{"application/json":{}}},"400":{"description":"Bad Request","content":{"application/json":{}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessDeniedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"task_category_id":{"type":"array","items":{"type":"string"}},"author_id":{"type":"array","items":{"type":"string"}},"sl":{"type":"array","items":{"type":"string"}},"hl":{"type":"array","items":{"type":"string"}}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"core_task":{"$ref":"#/components/schemas/CoreTaskAttributes"}},"required":["core_task"]}}},"required":true,"description":"Task attributes to create"}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.fariaedu.com/integrations-portal/managebac/public-rest-apis/v2p3/coursework.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
