Overview

You will receive this webhook when a learner completes a quiz.

The payload will be as follows below. The key data points are outlined below as well.

Payload

{
  "data":{
    "type":"quiz_completed_events",
    "id":"c28a8e46-18be-4867-b2c3-949b664f4d00",
    "attributes":{
      "created_at":"2017-11-08T18:34:15Z",
      "value":100
    },
    "relationships":{
      "person":{
        "data":{
          "type":"people",
          "id":"b22f3895-c213-43a2-8570-923239656994"
        }
      },
      "course":{
        "data":{
          "type":
          "courses",
          "id":"2014428c-2aae-48e9-b838-7956c226090c"
        }
      },
      "activity":{
        "data":{
          "type":"activities",
          "id":"d59b1068-d3a8-42f1-92c0-0c7ab6687d59"
        }
      },
      "quiz":{
        "data":{
          "type":"activities",
          "id":"fc29815f-c97d-47c0-8832-366604c22b08"
        }
      }
    },
    "included":[{
      "type":"people",
      "id":"b22f3895-c213-43a2-8570-923239656994",
      "attributes":{
        "activated_at":"2017-11-02T14:52:28Z",
        "created_at":"2017-11-02T14:52:28Z",
        "last_active_at":"2017-11-08T18:33:48Z",
        "name":"",
        "onboard_iq_uid":null,
        "sso_uid":"113",
        "updated_at":"2017-11-08T18:33:48Z",
        "unsubscribed":false
      },
      "links":{
        "self":"http://api.schoolkeep.com/v1/people/b22f3895-c213-43a2-8570-923239656994",
        "teaching":"http://app.schoolkeep.com/people/b22f3895-c213-43a2-8570-923239656994"
      },
      "relationships":{
        "school":{
          "data":{
            "type":"schools",
            "id":"8ba80eaf-3bb5-4533-ad3d-b1840ecfb4f8"
          }
        }
      }
    },
    {
      "type":"courses",
      "id":"2014428c-2aae-48e9-b838-7956c226090c",
      "attributes":{
        "name":"Course name",
        "enrollments_count":0,
        "course_enrollment_link":"https://school.schoolkeep.com/c/453b1fd80f5d668e76e19f650ea7658e8f815613",
        "share_course_link":"https://school.schoolkeep.com/outline/gq22yzw1/cover",
        "permalink":"gq22yzw1",
        "created_at":"2017-10-26T20:28:46Z",
        "updated_at":"2017-10-26T20:28:46Z"
      },
      "relationships":{
        "categories":{
          "data":[]
        },
        "instructor_partnerships":{
          "data":[]
        }
      },
      "links":{
        "self":"http://api.schoolkeep.com/v1/courses/gq22yzw1",
        "teaching":"http://app.schoolkeep.com/courses/gq22yzw1",
        "build":{
          "href":"http://app.schoolkeep.com/courses/gq22yzw1/builder",
          "methods":["get"]
        }
      }
    },
    {
      "type":"activities",
      "id":"d59b1068-d3a8-42f1-92c0-0c7ab6687d59",
      "attributes":{
        "title":"Activity name",
        "course_name":"Course name"
      },
      "links":{
        "teaching":"http://app.schoolkeep.com/courses/gq22yzw1/builder/activities/SJm1M4LAZ",
        "course_builder":"http://app.schoolkeep.com/courses/gq22yzw1/builder"}
    },
    {
      "type":"quizzes",
      "id":"fc29815f-c97d-47c0-8832-366604c22b08",
      "attributes":{
        "name":"Quiz name",
        "created_at":"2017-11-08T18:33:49Z"
      },
      "relationships":{
        "activities":{
          "data":[]
        }
      },
      "links":{
        "self":{
          "href":"http://api.schoolkeep.com/v1/quizzes/fc29815f-c97d-47c0-8832-366604c22b08",
          "methods":["delete"]
        },
        "build":"http://app.schoolkeep.com/quizzes/236/builder"
      }
    }]
  }
}

Did this answer your question?