Board rubrics — K8 HQ Content API
Board rubrics operations for K8 HQ Content API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
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 URL | For |
https://api.k8hq.com/v1 | API 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Response body (JSON)
| Field | Type | Description |
rubrics required | Rubric[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Rubrics. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
appliesTo | string[] | |
criteria | RubricCriterion[] | |
epoch | integer | |
id | string | |
object | string | |
wdek | string | |
Response body (JSON)
| Field | Type | Description |
appliesTo required | string[] | |
createdAt required | string | |
criteria required | RubricCriterion[] | |
id required | string | |
version required | integer | |
bytes | integer | |
createdBy | string | |
epoch | integer | |
latest | integer | |
object | string | A custom version's text: framed (meta, body), seal ID <board>|<rubric>|v<version>. |
starter | boolean | |
text | RubricText | A starter's text; for a token, a custom version's text opened by K8 HQ's servers. |
unreadable | boolean | Tokens only: the version's seal didn't open. |
wdek | string | |
Responses
| Status | Body | Meaning |
| 201 | Rubric | The rubric's version 1. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The 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. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A request with the same Idempotency-Key is still running (in_progress), or a rubric with this ID exists (conflict). |
| 413 | application/problem+json | The sealed text is too large (too_large). |
| 422 | application/problem+json | The device's clock is wrong (clock_wrong), or the board has 100 custom rubrics (rejected). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
rubric (path) required | string | The rubric: starter.coding, starter.task-description or a custom rubric's rbc_ ID. |
Response body (JSON)
| Field | Type | Description |
versions required | Rubric[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Versions. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
rubric (path) required | string | The rubric: starter.coding, starter.task-description or a custom rubric's rbc_ ID. |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
If-Match (header) | string | The 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)
| Field | Type | Description |
appliesTo | string[] | |
criteria | RubricCriterion[] | |
epoch | integer | |
object | string | |
wdek | string | |
Response body (JSON)
| Field | Type | Description |
appliesTo required | string[] | |
createdAt required | string | |
criteria required | RubricCriterion[] | |
id required | string | |
version required | integer | |
bytes | integer | |
createdBy | string | |
epoch | integer | |
latest | integer | |
object | string | A custom version's text: framed (meta, body), seal ID <board>|<rubric>|v<version>. |
starter | boolean | |
text | RubricText | A starter's text; for a token, a custom version's text opened by K8 HQ's servers. |
unreadable | boolean | Tokens only: the version's seal didn't open. |
wdek | string | |
Responses
| Status | Body | Meaning |
| 201 | Rubric | The new version. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The 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. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A request with the same Idempotency-Key is still running (in_progress), or the rubric is a starter (conflict). |
| 412 | application/problem+json | Another version was made since (version_mismatch): read the rubric again. |
| 413 | application/problem+json | The sealed text is too large (too_large). |
| 422 | application/problem+json | The rubric has 100 versions (rejected). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
rubric (path) required | string | The rubric: starter.coding, starter.task-description or a custom rubric's rbc_ ID. |
n (path) required | string | Version number (1, 2, …). |
Response body (JSON)
| Field | Type | Description |
appliesTo required | string[] | |
createdAt required | string | |
criteria required | RubricCriterion[] | |
id required | string | |
version required | integer | |
bytes | integer | |
createdBy | string | |
epoch | integer | |
latest | integer | |
object | string | A custom version's text: framed (meta, body), seal ID <board>|<rubric>|v<version>. |
starter | boolean | |
text | RubricText | A starter's text; for a token, a custom version's text opened by K8 HQ's servers. |
unreadable | boolean | Tokens only: the version's seal didn't open. |
wdek | string | |
Responses
| Status | Body | Meaning |
| 200 | Rubric | The version. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |