K8 HQ

Board rubrics — K8 HQ Content API

Board rubrics operations for K8 HQ Content API. Requests, permissions and responses.

Version 1OpenAPI description (JSON)

Browse operation groups

Before making requests, read the authentication and request requirements.

The rubrics that assessments score a task's work against, and their versions.

Scoring rubrics on task boards: the coding and task-description starters, and custom rubrics' versions. A version never changes; assessments keep the version they were made against. There is no overall score.

Base URL

Base URLFor
https://api.k8hq.com/v1API tokens and the K8 HQ web app

Endpoints

Board rubrics

List a board's rubrics

GET/boards/{board}/rubrics

The two starters, then the board's custom rubrics, each at its latest version. Tokens (boards:read, task boards in compatible mode) get sealed text opened by K8 HQ's servers with the board's key, metered boards.decrypted and audited like other board reads.

For API tokens with boards:read and the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).

Response body (JSON)

FieldTypeDescription
rubrics requiredRubric[]

Responses

StatusBodyMeaning
200JSONRubrics.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

Add a custom rubric

POST/boards/{board}/rubrics

People with boards.rubrics.manage for the board, never tokens. Version 1 of a rubric: its browser-minted rbc_ ID, the artifact kinds it is for (code, task-description, or your own lower-case kind), its criteria (each an integer scale, min 0 or more to max 10 at most) and its text sealed by the browser (framed meta, body; seal ID <board>|<rubric>|v1), with an anchor for every level. Sending it again returns it. Metered boards.changes.

For the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
appliesTostring[]
criteriaRubricCriterion[]
epochinteger
idstring
objectstring
wdekstring

Response body (JSON)

FieldTypeDescription
appliesTo requiredstring[]
createdAt requiredstring
criteria requiredRubricCriterion[]
id requiredstring
version requiredinteger
bytesinteger
createdBystring
epochinteger
latestinteger
objectstringA custom version's text: framed (meta, body), seal ID <board>|<rubric>|v<version>.
starterboolean
textRubricTextA starter's text; for a token, a custom version's text opened by K8 HQ's servers.
unreadablebooleanTokens only: the version's seal didn't open.
wdekstring

Responses

StatusBodyMeaning
201RubricThe rubric's version 1.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA request with the same Idempotency-Key is still running (in_progress), or a rubric with this ID exists (conflict).
413application/problem+jsonThe sealed text is too large (too_large).
422application/problem+jsonThe device's clock is wrong (clock_wrong), or the board has 100 custom rubrics (rejected).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

List a rubric's versions

GET/boards/{board}/rubrics/{rubric}/versions

Oldest first. Tokens (boards:read, task boards in compatible mode) get sealed text opened by K8 HQ's servers with the board's key, metered boards.decrypted and audited like other board reads.

For API tokens with boards:read and the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
rubric (path) requiredstringThe rubric: starter.coding, starter.task-description or a custom rubric's rbc_ ID.

Response body (JSON)

FieldTypeDescription
versions requiredRubric[]

Responses

StatusBodyMeaning
200JSONVersions.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

Make a rubric's next version

POST/boards/{board}/rubrics/{rubric}/versions

People with boards.rubrics.manage for the board. If-Match is the rubric's latest version; the new version is the next, sealed as that version, in full. Earlier versions and the assessments made against them never change. A starter can't be versioned. Sending the same version again returns it. Metered boards.changes.

For the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
rubric (path) requiredstringThe rubric: starter.coding, starter.task-description or a custom rubric's rbc_ ID.
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.
If-Match (header)stringThe contact's opaque etag from a response: change it only if it is still that version. Send it back unchanged. The old quoted <id>-<version> form is accepted and counted only for books that have never been restored; after a restore it returns 412 version_mismatch.

Request body (JSON)

FieldTypeDescription
appliesTostring[]
criteriaRubricCriterion[]
epochinteger
objectstring
wdekstring

Response body (JSON)

FieldTypeDescription
appliesTo requiredstring[]
createdAt requiredstring
criteria requiredRubricCriterion[]
id requiredstring
version requiredinteger
bytesinteger
createdBystring
epochinteger
latestinteger
objectstringA custom version's text: framed (meta, body), seal ID <board>|<rubric>|v<version>.
starterboolean
textRubricTextA starter's text; for a token, a custom version's text opened by K8 HQ's servers.
unreadablebooleanTokens only: the version's seal didn't open.
wdekstring

Responses

StatusBodyMeaning
201RubricThe new version.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA request with the same Idempotency-Key is still running (in_progress), or the rubric is a starter (conflict).
412application/problem+jsonAnother version was made since (version_mismatch): read the rubric again.
413application/problem+jsonThe sealed text is too large (too_large).
422application/problem+jsonThe rubric has 100 versions (rejected).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

Read a rubric version

GET/boards/{board}/rubrics/{rubric}/versions/{n}

One version, as assessments made against it read it. Tokens (boards:read, task boards in compatible mode) get sealed text opened by K8 HQ's servers with the board's key, metered boards.decrypted and audited like other board reads.

For API tokens with boards:read and the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
rubric (path) requiredstringThe rubric: starter.coding, starter.task-description or a custom rubric's rbc_ ID.
n (path) requiredstringVersion number (1, 2, …).

Response body (JSON)

FieldTypeDescription
appliesTo requiredstring[]
createdAt requiredstring
criteria requiredRubricCriterion[]
id requiredstring
version requiredinteger
bytesinteger
createdBystring
epochinteger
latestinteger
objectstringA custom version's text: framed (meta, body), seal ID <board>|<rubric>|v<version>.
starterboolean
textRubricTextA starter's text; for a token, a custom version's text opened by K8 HQ's servers.
unreadablebooleanTokens only: the version's seal didn't open.
wdekstring

Responses

StatusBodyMeaning
200RubricThe version.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).