GET/ api/ public/ v1/ grade-sessions
grade_sessions.list
- 所需权限
grades:read- 类别
- 只读
- 计费
- 不计费
- 幂等
- 不需要
- MCP 工具
list_grade_sessions
参数
cursor位置 query必填 否类型 stringlimit位置 query必填 否类型 integer (1–100)classId位置 query必填 否类型 string (uuid)status位置 query必填 否类型 draft | locked | archived
请求体
没有请求体
成功响应 200
{
"type": "object",
"properties": {
"items": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"title": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"draft",
"locked",
"archived"
]
},
"classId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"paperId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"examDate": {
"type": "string",
"format": "date-time"
},
"examKind": {
"anyOf": [
{
"type": "string",
"enum": [
"weekly",
"monthly",
"midterm",
"final",
"homework"
]
},
{
"type": "null"
}
]
},
"archivedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"title",
"status",
"classId",
"paperId",
"examDate",
"examKind",
"archivedAt",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"nextCursor": {
"anyOf": [
{
"type": "string",
"maxLength": 2048,
"pattern": "^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]{43}$"
},
{
"type": "null"
}
]
}
},
"required": [
"items",
"nextCursor"
],
"additionalProperties": false
}可能返回的错误状态码
400401403404409429500503
所有错误都用同一种错误信封返回,原因码见错误与限流。