Printago API
POST /v1/classwork/{id}/parts

Reference a part from a classwork item

Requires: classwork.editor

Path Parameters

id required
string

Request Body

ClassworkPartInsert
displayOrderoptional
integer
noteoptional
string
partIdrequired
string
pattern: ^[a-z0-9]{24}$

Example Request

application/json
{
  "partId": "string",
  "note": "string",
  "displayOrder": 1
}

Response Schema

ClassworkPart
classworkIdrequired
string
pattern: ^[a-z0-9]{24}$
createdAtrequired
string
format: date-time
displayOrderrequired
number
idrequired
string
pattern: ^[a-z0-9]{24}$
noterequired
string
partIdrequired
string
Null once the referenced part has been deleted: the row is kept (with `partName` as its memory of what it pointed at) so the teacher sees that a part went missing instead of the reference silently vanishing.
partNamerequired
string
The part's name when it was referenced; the fallback label once the part is gone.
storeIdrequired
string
pattern: ^[a-z0-9]{24}$
updatedAtrequired
string
format: date-time

Example Response

201 OK — application/json
{
  "classworkId": "string",
  "partName": "string",
  "note": "string",
  "displayOrder": 1,
  "id": "string",
  "storeId": "string",
  "createdAt": "2026-09-16T04:04:12.302Z",
  "updatedAt": "2026-09-16T04:04:12.302Z"
}