POST Assignment

Create an assignment.

Request URL

https://{school}.myschoolapp.com/api/academics/assignment?t={token}

Request headers

Content-Type stringMedia type of the body sent to the API.

Request body

ShortDescription intThe title of the assignment in the Assignment Center.
AssignmentTypeId intThe assignment type the assignment should be categorized as. To learn more about assignment types, click here. The AssessmentTypeId is returned in the GET Assignment Types call.
AbbrDescription stringThe abbreviation that the assignment appears as in Gradebook. To learn more about Working With Gradebook, click here.
SectionLinks objectThe course sections and parameters that the assignment should be associated with. Sections are instances of courses.
IncGradeBook boolEnter True if the assignment should be added as an assignment in Gradebook.
IncCumGrade boolEnter True if the assignment should contribute to the cumulative grade for a course.
MaxPoints intThe Maximum Points the assignment is worth. Maximum points are used as a variable when calculating for a cumulative grade. To learn more about Gradebook Calculation Formulas, click here.
Factor intThe Factor refers to a variable in the formula when calculating for a cumulative grade. Default of 1. To learn more about Gradebook Calculation Formulas, click here

{
  "AssignmentTypeId": "1114",
  "ShortDescription": "Go away, read some books",
  "LongDescription": "Here are some details.",
  "IncGradeBook": true,
  "AbbrDescription": "CLS",
  "MaxPoints": "10",
  "Factor": "1",
  "ExtraCredit": false,
  "IncCumGrade": true,
  "PublishGrade": true,
  "DropboxInd": false,
  "DropboxNumFiles": "1",
  "DropboxTimeLate": "11:59 PM",
  "SectionLinks": [
    {
      "SectionId": "1506414",
      "DateAssigned": "06/09/2017",
      "AssignmentTime": "15:00:00",
      "DateDue": "06/09/2017",
      "DueTime": "11:59 PM",
      "Section": null,
      "PublishInd": true,
      "PublishOnAssignedInd": false
    }
  ],
  "LinkItems": [],
  "DownloadItems": [],
  "SendNotification": false,
  "Notifications": [],
  "HasGrades": false,
  "RubricId": 0,
  "Lti": []
}

Response 200

Returns { "Message": "0" } .

Comments

Have a question? See a problem with our docs? Want to engage with the ON API team? Please visit us on the ON API Community!