Board assessments — K8 HQ Content API
Board assessments operations for K8 HQ Content API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
Before making requests, read the authentication and request requirements.
Request, draft, submit and discuss assessments of a task's work.
Optional assessments of a task's or subitem's work: requests binding the exact revision, private drafts sealed to keys of their own, and submitted assessments with per-criterion scores and feedback. Scores never change an item's status, approve code or authorize a deploy.
Base URL
| Base URL | For |
https://api.k8hq.com/v1 | API tokens and the K8 HQ web app |
Endpoints
Board assessments
List an item's assessment requests
GET/boards/{board}/items/{item}/assessment-requests
Oldest first, each bound to its current revision.
For API tokens with boards:read and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Response body (JSON)
| Field | Type | Description |
requests required | AssessmentRequest[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Requests. |
| 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). |
Request an assessment
POST/boards/{board}/items/{item}/assessment-requests
Anyone on the board. Fixes the rubric version (0: the latest now), which must apply to the artifact kind, and binds the exact revision: a task description's saved version (0: the head; its contributors are recorded from who saved versions 1 to it), code's repository and full commit (a branch alone is refused; base and candidate where the assessment covers them), another kind's revision reference. For code and other kinds, contributors are declared (members, or a label for an outside author) and kept as declared by you. Nominated reviewers must be on the board; a nomination grants no access. Sending it again returns it. Metered boards.changes. Scores never change the item's status, approve code or authorize a deploy.
For API tokens with boards:write and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
attempt | integer | |
contributors | Contributor[] | |
id | string | |
kind | string | |
reviewers | string[] | |
rubric | RubricRef | |
subject | Subject | |
Response body (JSON)
| Field | Type | Description |
assessed required | integer | The latest revision with a submitted assessment (0: none). |
attempt required | integer | |
contributors required | Contributor[] | |
id required | string | |
item required | string | |
kind required | string | The artifact kind: code, task-description or your own. |
requestedAt required | string | |
requestedBy required | Principal | |
reviewers required | string[] | |
revision required | integer | The subject revision assessments bind to. |
rubric required | RubricRef | |
state required | string | open or closed. |
subject required | Subject | |
submitted required | integer | Submitted assessments, every revision. |
version required | integer | The record's version: If-Match for changing it. |
closedAt | string | |
closedBy | Principal | |
revisedAt | string | |
revisedBy | Principal | |
Responses
| Status | Body | Meaning |
| 201 | AssessmentRequest | The request. |
| 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 request with this ID exists or the item is in Trash (conflict). |
| 422 | application/problem+json | The device's clock is wrong (clock_wrong), or the item has 50 requests (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). |
Change an assessment request
PATCH/boards/{board}/items/{item}/assessment-requests/{arq}
Its requester, or someone with boards.review for the board. If-Match is the record's version. A new subject (it must differ from the bound one: the same work is never a new revision, so contributors can't be relabeled on it) is the request's next revision (with contributors and attempt, which otherwise stay): the earlier revision, with its contributors, goes to its history and its assessments stay with it. reviewers replaces the nominations; state closes or reopens it. Metered boards.changes.
For API tokens with boards:write and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
arq (path) required | string | The assessment request (arq_). |
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 |
attempt | integer | |
contributors | Contributor[] | |
reviewers | string[] | |
state | string | |
subject | Subject | |
Response body (JSON)
| Field | Type | Description |
assessed required | integer | The latest revision with a submitted assessment (0: none). |
attempt required | integer | |
contributors required | Contributor[] | |
id required | string | |
item required | string | |
kind required | string | The artifact kind: code, task-description or your own. |
requestedAt required | string | |
requestedBy required | Principal | |
reviewers required | string[] | |
revision required | integer | The subject revision assessments bind to. |
rubric required | RubricRef | |
state required | string | open or closed. |
subject required | Subject | |
submitted required | integer | Submitted assessments, every revision. |
version required | integer | The record's version: If-Match for changing it. |
closedAt | string | |
closedBy | Principal | |
revisedAt | string | |
revisedBy | Principal | |
Responses
| Status | Body | Meaning |
| 200 | AssessmentRequest | The request. |
| 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 request is closed (conflict). |
| 412 | application/problem+json | If-Match named an older version, or the request moved to another revision (version_mismatch): assessment or request is as it is now. |
| 422 | application/problem+json | The request has 100 revisions (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). |
Say you contributed
POST/boards/{board}/items/{item}/assessment-requests/{arq}/contributors
Adds you, as you're signed in or as your token, to the contributors of the request's current revision (named in the body), source attested. It only adds: nobody removes a contributor, and a later revision of a code or other-kind request keeps its contributors unless new ones are declared with the new work. Since class is worked out when read, this turns your existing and future assessments of that revision self; it can never make one independent. Anyone on the board may attest for themselves only. Again is a no-op. Metered boards.changes.
For API tokens with boards:write and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
arq (path) required | string | The assessment request (arq_). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
revision required | integer | |
reported | Reported | |
Response body (JSON)
| Field | Type | Description |
assessed required | integer | The latest revision with a submitted assessment (0: none). |
attempt required | integer | |
contributors required | Contributor[] | |
id required | string | |
item required | string | |
kind required | string | The artifact kind: code, task-description or your own. |
requestedAt required | string | |
requestedBy required | Principal | |
reviewers required | string[] | |
revision required | integer | The subject revision assessments bind to. |
rubric required | RubricRef | |
state required | string | open or closed. |
subject required | Subject | |
submitted required | integer | Submitted assessments, every revision. |
version required | integer | The record's version: If-Match for changing it. |
closedAt | string | |
closedBy | Principal | |
revisedAt | string | |
revisedBy | Principal | |
Responses
| Status | Body | Meaning |
| 200 | AssessmentRequest | The request. |
| 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 item is in Trash (conflict). |
| 412 | application/problem+json | If-Match named an older version, or the request moved to another revision (version_mismatch): assessment or request is as it is now. |
| 422 | application/problem+json | The revision has 20 contributors (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 request's earlier revisions
GET/boards/{board}/items/{item}/assessment-requests/{arq}/history
Oldest first: each bound subject, attempt and contributors, and who replaced it.
For API tokens with boards:read and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
arq (path) required | string | The assessment request (arq_). |
Response body (JSON)
| Field | Type | Description |
revisions required | AssessmentRequestRevision[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Revisions. |
| 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). |
List an item's assessments
GET/boards/{board}/items/{item}/assessments
Oldest first: every submitted one, and the drafts you evaluate or collaborate on (a token, only its own drafts). Each with its class worked out now from its revision's contributors. 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_…). |
item (path) required | string | Item ID (itm_…). |
Response body (JSON)
| Field | Type | Description |
assessments required | Assessment[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Assessments. |
| 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). |
Begin an assessment
POST/boards/{board}/items/{item}/assessments
Of a request's current revision (a correction: the revision it corrects), as self (a contributor of it), reviewer (a nominated reviewer, or someone with boards.review) or external (feedback from an outside evaluator, by the requester or a reviewer, with reported naming the evaluator; always unverified). For an external assessment the authenticated submitter is recorded as evaluator (they answer for it: they submit, correct and discuss it) and reported is kept apart, never trusted. Collaborators are for people's drafts; a token's draft has none (refused). Contributors declared by the evaluator's own member, through any of its tokens or signed in, make it unverified. A draft gets a key of its own: people get it with the draft (key) and seal its content to it. With submit, the content sealed to the board is submitted at once. previous and relation link a correction (its evaluator, naming the criteria it corrects) or a reassessment (of a later revision). Sending it again returns it. Metered boards.changes. Tokens (boards:write, task boards in compatible mode) send content (an assessment body) in plaintext instead, and K8 HQ's servers check it against the rubric and seal it: a token's draft to the draft's own key, its submission to the board's. Scores never change the item's status, approve code or authorize a deploy.
For API tokens with boards:write and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
collaborators | string[] | |
content | AssessmentBody | Tokens only: the content in plaintext. |
corrects | string[] | |
epoch | integer | |
id | string | |
kind | string | |
object | string | |
previous | string | |
relation | string | |
reported | Reported | |
request | string | |
revision | integer | |
submit | boolean | |
wdek | string | |
Response body (JSON)
| Field | Type | Description |
bytes required | integer | |
class required | string | self, independent or unverified: worked out from who contributed and who evaluated, never sent. |
createdAt required | string | |
evaluator required | Principal | The authenticated member and how they acted; for an external assessment, its submitter. |
id required | string | |
item required | string | |
kind required | string | What the evaluator submitted it as: self, reviewer or external. |
request required | string | |
revision required | integer | The request revision assessed. |
rubric required | RubricRef | |
state required | string | draft or submitted. |
updatedAt required | string | |
version required | integer | |
collaborators | string[] | |
content | AssessmentBody | Tokens only: the content, opened by K8 HQ's servers. |
corrects | string[] | |
draftKey | integer | A draft's: the number of its key its content is sealed to. |
epoch | integer | A submitted one's board epoch. |
key | DraftKey | People only, when a draft is made: its key, to seal its content to. |
object | string | Framed (meta, body): a draft's sealed to its own key (seal ID <item>|<request>|r<revision>|<assessment>|draft), a submitted one's to the board (<item>|<request>|r<revision>|<assessment>). |
origin | Principal | A correction's original evaluator: a correction is classed no more independent than the judgment it corrects. |
outcomes | object | Each criterion's discussion outcome ("" for the whole assessment): confirmed (an author agreed), disputed (an author's dispute is open), upheld (its evaluator kept the finding) or corrected (a correction changed it). Never changes a score. |
previous | string | |
relation | string | correction or reassessment. |
reported | Reported | What the client reported about the evaluator: never trusted, display only. |
submittedAt | string | |
supersededAt | string | |
supersededBy | string | |
unreadable | boolean | Tokens only: its seal didn't open. |
wdek | string | |
Responses
| Status | Body | Meaning |
| 201 | Assessment | The assessment (a draft with its key, for people). |
| 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 an assessment with this ID exists, the request is closed, or the one it follows was corrected already (conflict). |
| 412 | application/problem+json | If-Match named an older version, or the request moved to another revision (version_mismatch): assessment or request is as it is now. |
| 413 | application/problem+json | The sealed assessment is too large (too_large). |
| 422 | application/problem+json | The device's clock is wrong (clock_wrong), or the item has 500 assessments (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 an assessment
GET/boards/{board}/items/{item}/assessments/{asm}
A submitted one, or a draft you may read (any other draft is not found). 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_…). |
item (path) required | string | Item ID (itm_…). |
asm (path) required | string | The assessment (asm_). |
Response body (JSON)
| Field | Type | Description |
bytes required | integer | |
class required | string | self, independent or unverified: worked out from who contributed and who evaluated, never sent. |
createdAt required | string | |
evaluator required | Principal | The authenticated member and how they acted; for an external assessment, its submitter. |
id required | string | |
item required | string | |
kind required | string | What the evaluator submitted it as: self, reviewer or external. |
request required | string | |
revision required | integer | The request revision assessed. |
rubric required | RubricRef | |
state required | string | draft or submitted. |
updatedAt required | string | |
version required | integer | |
collaborators | string[] | |
content | AssessmentBody | Tokens only: the content, opened by K8 HQ's servers. |
corrects | string[] | |
draftKey | integer | A draft's: the number of its key its content is sealed to. |
epoch | integer | A submitted one's board epoch. |
key | DraftKey | People only, when a draft is made: its key, to seal its content to. |
object | string | Framed (meta, body): a draft's sealed to its own key (seal ID <item>|<request>|r<revision>|<assessment>|draft), a submitted one's to the board (<item>|<request>|r<revision>|<assessment>). |
origin | Principal | A correction's original evaluator: a correction is classed no more independent than the judgment it corrects. |
outcomes | object | Each criterion's discussion outcome ("" for the whole assessment): confirmed (an author agreed), disputed (an author's dispute is open), upheld (its evaluator kept the finding) or corrected (a correction changed it). Never changes a score. |
previous | string | |
relation | string | correction or reassessment. |
reported | Reported | What the client reported about the evaluator: never trusted, display only. |
submittedAt | string | |
supersededAt | string | |
supersededBy | string | |
unreadable | boolean | Tokens only: its seal didn't open. |
wdek | string | |
Responses
| Status | Body | Meaning |
| 200 | Assessment | The assessment. |
| 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). |
Discard a draft
DELETE/boards/{board}/items/{item}/assessments/{asm}
Its evaluator only; If-Match is its version. Deletes it and its key. A submitted assessment is kept: correct it with a new one. Metered boards.changes.
For API tokens with boards:write and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
asm (path) required | string | The assessment (asm_). |
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. |
Responses
| Status | Body | Meaning |
| 204 | | Discarded. |
| 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 it was submitted (conflict). |
| 412 | application/problem+json | If-Match named an older version, or the request moved to another revision (version_mismatch): assessment or request is as it is now. |
| 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). |
Save a draft
PUT/boards/{board}/items/{item}/assessments/{asm}/draft
Its evaluator or a collaborator (signed in); If-Match is its version. Content sealed to the draft's current key; revision rebinds it to the request's current revision (seal it again for that revision). Only its evaluator changes collaborators, reported, corrects or the revision; removing a collaborator moves the draft to a new key (K8 HQ's servers wrap the content's key to it and delete the old key's wrap). Metered boards.changes. Tokens (boards:write, task boards in compatible mode) send content (an assessment body) in plaintext instead, and K8 HQ's servers check it against the rubric and seal it: a token's draft to the draft's own key, its submission to the board's.
For API tokens with boards:write and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
asm (path) required | string | The assessment (asm_). |
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 |
collaborators | string[] | |
content | AssessmentBody | Tokens only. |
corrects | string[] | |
epoch | integer | |
object | string | |
reported | Reported | |
revision | integer | |
wdek | string | |
Response body (JSON)
| Field | Type | Description |
bytes required | integer | |
class required | string | self, independent or unverified: worked out from who contributed and who evaluated, never sent. |
createdAt required | string | |
evaluator required | Principal | The authenticated member and how they acted; for an external assessment, its submitter. |
id required | string | |
item required | string | |
kind required | string | What the evaluator submitted it as: self, reviewer or external. |
request required | string | |
revision required | integer | The request revision assessed. |
rubric required | RubricRef | |
state required | string | draft or submitted. |
updatedAt required | string | |
version required | integer | |
collaborators | string[] | |
content | AssessmentBody | Tokens only: the content, opened by K8 HQ's servers. |
corrects | string[] | |
draftKey | integer | A draft's: the number of its key its content is sealed to. |
epoch | integer | A submitted one's board epoch. |
key | DraftKey | People only, when a draft is made: its key, to seal its content to. |
object | string | Framed (meta, body): a draft's sealed to its own key (seal ID <item>|<request>|r<revision>|<assessment>|draft), a submitted one's to the board (<item>|<request>|r<revision>|<assessment>). |
origin | Principal | A correction's original evaluator: a correction is classed no more independent than the judgment it corrects. |
outcomes | object | Each criterion's discussion outcome ("" for the whole assessment): confirmed (an author agreed), disputed (an author's dispute is open), upheld (its evaluator kept the finding) or corrected (a correction changed it). Never changes a score. |
previous | string | |
relation | string | correction or reassessment. |
reported | Reported | What the client reported about the evaluator: never trusted, display only. |
submittedAt | string | |
supersededAt | string | |
supersededBy | string | |
unreadable | boolean | Tokens only: its seal didn't open. |
wdek | string | |
Responses
| Status | Body | Meaning |
| 200 | Assessment | The draft. |
| 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 it was submitted (conflict). |
| 412 | application/problem+json | If-Match named an older version, or the request moved to another revision (version_mismatch): assessment or request is as it is now. |
| 413 | application/problem+json | The sealed assessment is too large (too_large). |
| 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). |
Get a draft's key
GET/boards/{board}/items/{item}/assessments/{asm}/key
People only, and only those who may read the draft: its current key, its private key sealed to your user key. Tokens read their own drafts through K8 HQ's servers. A draft is never sealed to the board's key.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
asm (path) required | string | The assessment (asm_). |
Response body (JSON)
| Field | Type | Description |
number required | integer | |
public required | string | |
wrapped required | string | The draft key's private key sealed to your user key, bound to the assessment and the key's number (as a board's epoch keys are). |
suite | HPKESuite | |
wrapSuite | any | The recipient user key's suite, used to open wrapped. The suite field describes the key inside that wrap. |
Responses
| Status | Body | Meaning |
| 200 | DraftKey | The key. |
| 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). |
| 409 | application/problem+json | You have no encryption key yet, or the assessment was submitted (conflict). |
| 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 an assessment's discussion
GET/boards/{board}/items/{item}/assessments/{asm}/notes
A submitted assessment's notes, oldest first. Notes are never edited or deleted. 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_…). |
item (path) required | string | Item ID (itm_…). |
asm (path) required | string | The assessment (asm_). |
Response body (JSON)
| Field | Type | Description |
notes required | AssessmentNote[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Notes. |
| 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). |
Discuss an assessment
POST/boards/{board}/items/{item}/assessments/{asm}/notes
On a submitted assessment: a question (anyone on the board), a dispute or confirm of a finding (the assessed revision's contributors), a reply to a question or dispute (its evaluator or a contributor), or a resolve of a dispute (upheld by its evaluator, withdrawn by the dispute's author). Nobody rewrites an assessment: the evaluator corrects one with a new linked assessment, which marks the criteria it corrects corrected and resolves their disputes. The note's content is sealed to the board (framed meta, body; seal ID <item>|<assessment>|<note>). Sending it again returns it. Metered boards.comments. Tokens send text (up to 8,000 characters) instead; K8 HQ's servers seal it.
For API tokens with boards:write and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
asm (path) required | string | The assessment (asm_). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
criterion | string | |
epoch | integer | |
id | string | |
kind | string | |
object | string | |
outcome | string | |
question | string | |
replyTo | string | |
text | string | Tokens only. |
wdek | string | |
Response body (JSON)
| Field | Type | Description |
assessment required | string | |
at required | string | |
by required | Principal | |
bytes required | integer | |
epoch required | integer | |
id required | string | |
item required | string | |
kind required | string | question, dispute, confirm, reply or resolve. |
object required | string | Framed (meta, body), seal ID <item>|<assessment>|<note>. |
wdek required | string | |
body | object | Tokens only: the note's text, opened by K8 HQ's servers. |
criterion | string | The criterion it is about; absent for the whole assessment. |
outcome | string | A resolution's: upheld (by the evaluator) or withdrawn (by the dispute's author). |
question | string | A structured question on the item (qst_) it links, as its author named it (not checked yet). |
replyTo | string | The question or dispute (adn_) a reply or resolution answers. |
resolvedBy | string | The note (adn_) or correction (asm_) that answered or resolved it. |
state | string | A question's or dispute's: open, answered or resolved. |
unreadable | boolean | Tokens only: its seal didn't open. |
Responses
| Status | Body | Meaning |
| 201 | AssessmentNote | The note. |
| 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 note with this ID exists, or the dispute was resolved already (conflict). |
| 413 | application/problem+json | The sealed note is too large (too_large). |
| 422 | application/problem+json | The device's clock is wrong (clock_wrong), or the assessment has 200 notes (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). |
Submit a draft
POST/boards/{board}/items/{item}/assessments/{asm}/submit
Its evaluator only; If-Match is its version. Names the request revision and rubric version assessed: both must still be the request's (a request that moved on answers 412 with it). People send the content sealed to the board's epoch key; tokens send only revision (required: the request revision they assess, so a request that moved on is refused rather than misbound), and K8 HQ's servers open the draft and seal it to the board. The draft's key is deleted, the assessment it follows is kept and marked superseded, and the item's card counts it. Submitting the same again returns it. Metered boards.changes. Scores never change the item's status, approve code or authorize a deploy.
For API tokens with boards:write and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
asm (path) required | string | The assessment (asm_). |
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 |
revision required | integer | |
epoch | integer | |
object | string | |
rubric | RubricRef | |
wdek | string | |
Response body (JSON)
| Field | Type | Description |
bytes required | integer | |
class required | string | self, independent or unverified: worked out from who contributed and who evaluated, never sent. |
createdAt required | string | |
evaluator required | Principal | The authenticated member and how they acted; for an external assessment, its submitter. |
id required | string | |
item required | string | |
kind required | string | What the evaluator submitted it as: self, reviewer or external. |
request required | string | |
revision required | integer | The request revision assessed. |
rubric required | RubricRef | |
state required | string | draft or submitted. |
updatedAt required | string | |
version required | integer | |
collaborators | string[] | |
content | AssessmentBody | Tokens only: the content, opened by K8 HQ's servers. |
corrects | string[] | |
draftKey | integer | A draft's: the number of its key its content is sealed to. |
epoch | integer | A submitted one's board epoch. |
key | DraftKey | People only, when a draft is made: its key, to seal its content to. |
object | string | Framed (meta, body): a draft's sealed to its own key (seal ID <item>|<request>|r<revision>|<assessment>|draft), a submitted one's to the board (<item>|<request>|r<revision>|<assessment>). |
origin | Principal | A correction's original evaluator: a correction is classed no more independent than the judgment it corrects. |
outcomes | object | Each criterion's discussion outcome ("" for the whole assessment): confirmed (an author agreed), disputed (an author's dispute is open), upheld (its evaluator kept the finding) or corrected (a correction changed it). Never changes a score. |
previous | string | |
relation | string | correction or reassessment. |
reported | Reported | What the client reported about the evaluator: never trusted, display only. |
submittedAt | string | |
supersededAt | string | |
supersededBy | string | |
unreadable | boolean | Tokens only: its seal didn't open. |
wdek | string | |
Responses
| Status | Body | Meaning |
| 200 | Assessment | The submitted assessment. |
| 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 it was submitted already with other content, the request is closed, or the one it follows was corrected already (conflict). |
| 412 | application/problem+json | If-Match named an older version, or the request moved to another revision (version_mismatch): assessment or request is as it is now. |
| 413 | application/problem+json | The sealed assessment is too large (too_large). |
| 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). |