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

上架or下架课程


接口URL

http://demonuxtapi.dishait.cn/admin/s/course/updatestatus

请求方式

POST

Content-Type

application/x-www-form-urlencoded

请求Header参数

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

请求Body参数

参数名示例值参数类型是否必填参数描述
id4Integer课程id
status0Integer状态:0下架,1上架

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"id": 4,
		"title": "第二个图文",
		"cover": "http://...png",
		"try": "试看内容",
		"content": "图文内容",
		"price": "9.98",
		"t_price": "20.00",
		"type": "media",
		"school_id": 11,
		"status": 0,
		"sub_count": 0,
		"is_single": 1,
		"created_time": "2021-02-28T12:32:11.000Z",
		"updated_time": "2021-03-21T09:56:12.657Z"
	},
	"code": 20000
}