Assignments

Get an assignment

Returns one published assignment.

GEThttps://api.klasstack.com/v1/assignments/{id}

  • assignments:read
  • Billable
  • Test key: example response

Authorizations

  • Authorizationstringheaderrequired

    Your secret key as a bearer token, in the form Bearer ks_live_sk_... or Bearer ks_test_sk_.... Keep it on your server. A test key gets the documented example and touches no school data.

Path Parameters

  • idstringpathrequired

    Example: 21

Response

200, application/json

  • dataobjectrequired

    Show child attributes
    • idnumberrequired

    • courseIdnumberrequired

    • classSectionIdnumber or nullrequired

    • classLevelIdnumber or null

    • academicPeriodIdnumberrequired

    • titlestringrequired

    • instructionsHtmlstring or nullrequired

    • assignmentTypestringrequired

    • maxPointsnumberrequired

    • dueAtstring (date-time)required

    • closesAtstring or null (date-time)required

    • visibilitystringrequired

    • statusstringrequired

    • publishedAtstring or null (date-time)required

    • durationMinutesnumber or nullrequired

      CBT and quiz only

    • maxAttemptsnumber or nullrequired

      CBT and quiz only

    • passingScorenumber or nullrequired

      CBT and quiz only

    • courseobject

      Show child attributes
      • idnumberrequired

      • namestringrequired

      • codestring or nullrequired

    • classSectionobject or null

      Show child attributes
      • idnumberrequired

      • namestringrequired

      • classLevelobject

        Show child attributes
        • idnumberrequired

        • namestringrequired

  • metaobjectrequired

    Show child attributes
    • request_idstringrequired

      Also returned in the X-Request-ID header.

    • paginationobject

      Show child attributes
      • limitintegerrequired

        Required range: x <= 100

      • has_morebooleanrequired

      • next_cursorstring or nullrequired

        Send this back as cursor for the next page. Opaque: never parse it.

Errors

What each code means, and what to do about it, is in the errors guide.

Webhook events

This call triggers no webhook event.