K12 版本管理接口说明

云教室-新增云教室

URL: /v1/ccr/classrooms

请求方式:POST

是否需要授权

参数:

名称 必选 类型 说明
count true int 生成激活码数量
validity_year false int 有效年限
validity_month false int 有效月数
school_code true char 学校编码
operate_account true char 操作帐号
operater true char 操作人

响应:

名称 必选 类型
status int 状态
msg char 返回信息

JSON示例:

//HTTP Status Code 200 成功返回
{
    "data": {
        "list": [
            {
                "id": 27,
                "name": "云教室04",
                "validity": "6个月",
                "active_code": "730LXRJL0VUM",
                "create_time": 1575611826,
                "binding_date": 0,
                "expired_date": 0,
                "isbinding": 0,
                "log_info": {
                    "operate_account": "1",
                    "operater": "储林",
                    "operate_time": 1575611826,
                    "machine_code": ""
                }
            },
            {
                "id": 28,
                "name": "云教室05",
                "validity": "6个月",
                "active_code": "OCI6GLH5LLY1",
                "create_time": 1575611826,
                "binding_date": 0,
                "expired_date": 0,
                "isbinding": 0,
                "log_info": {
                    "operate_account": "1",
                    "operater": "储林",
                    "operate_time": 1575611826,
                    "machine_code": ""
                }
            },
            {
                "id": 29,
                "name": "云教室06",
                "validity": "6个月",
                "active_code": "7VJTKJXIFR1A",
                "create_time": 1575611826,
                "binding_date": 0,
                "expired_date": 0,
                "isbinding": 0,
                "log_info": {
                    "operate_account": "1",
                    "operater": "储林",
                    "operate_time": 1575611826,
                    "machine_code": ""
                }
            }
        ]
    },
    "msg": "success",
    "status": 200
}
// HTTP Status Code 400 失败返回
{
    "msg": "错误信息",
    "status": 400
}