Buzz API

Understanding GradeStatus value

Follow
Answered
Brian Collins
I have an item that returns `"status":36877`. However, looking at https://gls.agilix.com/docs/#!/Enum/GradeStatus I'm unable to determine how 36877 is calculated from the format displayed. Is that number returned from the total sum of gradestatus values when converted from hex to decimal? A status can contain multiple values, such as Extra Credit and Completed would be 0x01 + 0x200 = 513? Trying to determine if an item that has been marked for re-submission can be omitted from our "needs grading, past threshold" process.

Comments (5)

Sort by
Brian Williams
  • Agilix team member

Hey Brian!

The value that is returned can be a combined total value from other grade status values. As a note the values are displayed in hex format in the documentation and are in decimal format when returned through the API. The decimal value from the API would need to be broken down into hex and aligned to the individual values in the documentation. 

I am not sure what API request was made to obtain that value of "status":36877',? Additionally do you know if the item was scored through the API or though Buzz? If it was scored through Buzz then I recommend submitting a ticket to Agilix Support. 

 

 

 

0 Comment actions Permalink
Brian Collins

I used GetGrade which returned that value.  Checking the particular assignment in Buzz shows me these values: completed, needs grading, retry allowed, and has feedback.

I calculated those values as 1, 1024, 8, 32768 for a total of 33801, which leaves me short 3076. 

It actually has the absence of a score, it's ungraded but submitted.  I believe the student submitted their work on the wrong assignment, so it was sent back to them to resubmit when the assignment comes up later in the class.  It came up as outstanding work that needs to be scored and we're trying to figure out how to programmatically recognize this as an exception.

0 Comment actions Permalink
Brian Williams
  • Agilix team member

Could you provide the whole API request that was made? If that is not something you desire to do, you may submit a ticket to Agilix Support to further address this behavior. 

0 Comment actions Permalink
Brian Collins

Here we go!

cmd=getgrade&enrollmentid=1290xxxxx&itemid=xxxxxxxxx

{
"response":{
"code":"OK",
"grade":{
"responseversion":2,
"status":36877,
"attempts":3,
"seconds":254,
"firstactivitydate":"2020-02-05T09:22:18.063Z",
"lastactivitydate":"2020-02-05T09:26:32.25Z",
"submittedversion":1,
"submitteddate":"2020-02-05T09:24:39.84Z"
}
}
}

0 Comment actions Permalink
Brian Williams
  • Agilix team member

The value of 32768 in decimal has a value of 900D in hex, D is 13 in Hex. So this particular grade status has these bit values: HasNotes/SkipMasteryRestriction/AllowResubmission/ShowScore/Completed

 

 

0 Comment actions Permalink
Please sign in to leave a comment.