Skip to content

POST assignments id update_quest

Ray Tsai edited this page Dec 13, 2016 · 1 revision

POST assignments/:id/update_quest

Updates the quest for an assignment.

Body Parameters

Name Required Description Default Value Example
quest_id optional The identifier of the quest as a string. "584c3b9f042e59a737c762a7"
quest_sort optional 3
points_unlock optional The number of points needed to unlock an assignment in a quest. 20

Example Request

{
  "quest_id": "584c3b9f042e59a737c762a7",
  "quest_sort": 2,
  "points_unlock": 25
}

Example Response

{
  "teacher": {
    "id": "582a1c125789252c48ada271",
    "name": "Severus Snape"
  },
  "id": "583c9865aa877721348f427e",
  "xml": "<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"expect\" id=\"v%kq5WgSPvUoxlI1uljg\" x=\"44\" y=\"38\"></block></xml>",
  "points_total": 26
}