Skip to navigation

Create a question set

Create a question set with its first version as a draft. Publish the version before a tool, step or grader can reference it.

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
namestringRequired1-255 characters
questionsmap from strings to anyRequired

Judgment questions keyed by question id. Each is { type: "boolean" | "choice" | "score", instructions, criteria }. The id is never sent to the model, so instructions and criteria carry the meaning.

slugstringRequiredformat: "^[a-z0-9][a-z0-9_-]{0,63}$"

Stable handle, unique in the organization: lowercase letters, digits, - and _, up to 64.

descriptionstring or nullOptional
inputMappingmap from strings to strings or nullOptional
modelstring or nullOptional>=1 character

Response

Created
questionSetobject
versionobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error