更新试卷
接口URL
请求方式
POST
Content-Type
json
请求Header参数
| 参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
|---|---|---|---|---|
| token | eyj...Nj | String | 是 | 用户token |
| schoolid | 11 | Integer | 是 | 网校id |
请求Body参数
json5
{
"id": 4,
"title": "第二张试卷",
"total_score": 100,
"pass_score": 60,
"expire": 60,
"status": 1,
"questions": [
{
"question_id": 1,
"score": 50
},
// ...
]
}字段描述
| 参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
|---|---|---|---|---|
| id | 7 | Integer | 是 | 试卷id |
| title | 第二张试卷 | String | 是 | 试卷名称 |
| total_score | 100 | Integer | 是 | 总分 |
| pass_score | 60 | Integer | 是 | 及格分 |
| expire | 60 | Integer | 是 | 考试时间 |
| status | 1 | Integer | 是 | 状态:0禁用1启用 |
| questions | - | Object | 是 | 题目列表 |
| questions.question_id | 1 | Integer | 是 | 题目id |
| questions.score | 50 | Integer | 是 | 题目分数 |
错误响应示例
json5
{
"msg": "fail",
"data": "该试卷已公开考试,禁止修改"
}