POST api/DriiveAssessment/DriverAssessment?driverAssessmentId={driverAssessmentId}
Submit responses for an assessment
Request Information
URI Parameters
| Name | Description | Type | Additional information | 
|---|---|---|---|
| driverAssessmentId | 
                         The id of the driver assessment  | 
                    integer | 
                                 Required  | 
                
Body Parameters
CompleteDriverAssessmentRequest
CompleteDriverAssessmentRequest| Name | Description | Type | Additional information | 
|---|---|---|---|
| QuestionResponses | 
                         A collection of question responses  | 
                    Collection of AssessmentQuestionResponse | 
                             None.  | 
                
Request Formats
application/json, text/json
            Sample:
        
{
  "QuestionResponses": [
    {
      "QuestionId": 1,
      "Responses": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "QuestionId": 1,
      "Responses": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ]
}
        application/xml, text/xml
            Sample:
        
<CompleteDriverAssessmentRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <QuestionResponses>
    <QuestionResponse>
      <QuestionId>1</QuestionId>
      <Responses>
        <string>sample string 1</string>
        <string>sample string 2</string>
      </Responses>
    </QuestionResponse>
    <QuestionResponse>
      <QuestionId>1</QuestionId>
      <Responses>
        <string>sample string 1</string>
        <string>sample string 2</string>
      </Responses>
    </QuestionResponse>
  </QuestionResponses>
</CompleteDriverAssessmentRequest>
        application/x-www-form-urlencoded
            Sample:
    
Sample not available.
Response Information
Resource Description
A CompleteDriverAssessmentResponse
CompleteDriverAssessmentResponse| Name | Description | Type | Additional information | 
|---|---|---|---|
| Points | 
                         The points of the assessment  | 
                    integer | 
                             None.  | 
                
| Status | 
                         The status of the assessment  | 
                    DriiveAssessmentCourseStatus | 
                             None.  | 
                
Response Formats
application/json, text/json
            Sample:
        
{
  "Points": 1,
  "Status": 0
}
        application/xml, text/xml
            Sample:
<CompleteDriverAssessmentResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Points>1</Points> <Status>Scheduled</Status> </CompleteDriverAssessmentResponse>