Skip to content
Proud to collaborate with Microsoft for Startups

canvas.courses.restore-course-syllabus-version ​

Restore a course's syllabus body to a previously saved version. No other course content is affected. Requires the syllabus_versioning feature flag to be enabled on the account, and the caller must have permission to manage course content.

Restore course syllabus version

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-canvas
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
base_urlstringYes—Canvas API root, e.g. https://<host>/api
api_tokenstringNo—Bearer token; omit to use the workflow's token env var
course_idstringYes—ID
version_idintegerYes—The version number to restore to. Available version numbers are returned by the Get a single course API when include[]=syllabus_versions is passed.

Output Schema ​

FieldTypeRequiredDefaultDescription
base_urlstringYes—Canvas API root, e.g. https://<host>/api
api_tokenstringNo—Bearer token; omit to use the workflow's token env var
course_idstringYes—ID
version_idintegerYes—The version number to restore to. Available version numbers are returned by the Get a single course API when include[]=syllabus_versions is passed.
status_codeintegerNo—HTTP status code of the completed call
responsejsonNo—Parsed JSON response body
failure_reasonstringNo——
failure_typestringNo——
failed_atstringNo——
failed_stepstringNo——
failed_layerstringNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeWaiting to call POST /v1/courses/{course_id}/restore/
completedNoYesYes—HTTP call succeeded
failedNoYesNo—HTTP call failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompletedPerform POST /v1/courses/{course_id}/restore/
* (any state)failfailedRecord the failure reason

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "canvas.courses.restore-course-syllabus-version",
  "initial_data": {
    "base_url": "value",
    "course_id": "value",
    "version_id": 123
  }
}