Skip to content
关注公众号,获取新课通知

更新试卷 ​


接口URL ​

http://demonuxtapi.dishait.cn/admin/s/testpaper/update

请求方式 ​

POST

Content-Type ​

json

请求Header参数 ​

参数名示例值参数类型是否必填参数描述
tokeneyj...NjString是用户token
schoolid11Integer是网校id

请求Body参数 ​

json5
{
	"id": 4,
	"title": "第二张试卷",
	"total_score": 100,
	"pass_score": 60,
	"expire": 60,
	"status": 1,
	"questions": [
		{
			"question_id": 1,
			"score": 50
		},
		// ...
	]
}

字段描述 ​

参数名示例值参数类型是否必填参数描述
id7Integer是试卷id
title第二张试卷String是试卷名称
total_score100Integer是总分
pass_score60Integer是及格分
expire60Integer是考试时间
status1Integer是状态:0禁用1启用
questions-Object是题目列表
questions.question_id1Integer是题目id
questions.score50Integer是题目分数

错误响应示例 ​

json5
{
	"msg": "fail",
	"data": "该试卷已公开考试,禁止修改"
}