创建培训课程
POST
/topapi/planetom/feeds/create最后修改时间:: 2 年前
责任人: 未设置
说明
调用本接口通过培训平台开放能力,创建培训课程。
服务地址:https://oapi.dingtalk.com
权限
服务端API是以应用维度授权的,在调用接口前,确保已经为应用添加了接口权限。
应用类型 | 是否支持调用 | 权限申请方式 | API Explorer调试 |
---|---|---|---|
企业内部应用 | 否 | — | — |
第三方企业应用 | 是 | 开发者后台申请 | 调试 |
第三方个人应用 | 否 | — | — |
请求参数
Query 参数
access_token
string
必需
调用服务端API的应用凭证,可通过获取第三方企业应用的access_token接口获取。
示例值:
dc73axxxx
Body 参数application/json
cover_url
string
封面的URL。
appoint_begin_time
number
必需
约定开播(未来时间),Unix时间戳。
pic_introduction_url
string
图片简介URL。
feed_type
number
课程类型:0:直播
group_ids
string
可选
直播要绑定的群列表ID,调用创建群会话接口时会返回群会话ID。
title
string
课程标题。
anchor_id
string
必需
主播在组织内的id(staffId)。
introduction
string
培训简介。
group_id_type
number
可选
group_ids传入时的类型格式。1:chatId2:openConversationId不传默认为OpenConversationId
open_app_id
number
必需
开放平台中应用的appId。
pre_video_url
string
预告片视频。
示例
{
"cover_url": "http://tblearxxxx",
"anchor_id": "0225376",
"pic_introduction_url": "http://tblearxxxx",
"group_ids": "cidzZ7txxxx,cidaZ5xxxx",
"appoint_begin_time": 1546358399000,
"title": "测试课程",
"feed_type": 0,
"introduction": "简介",
"group_id_type": 1,
"open_app_id": 66555
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
result
string
课程ID。
success
boolean
请求是否成功。
errcode
number
返回码。
errmsg
string
返回码描述。
示例
{
"result": "string",
"success": true,
"errcode": 0,
"errmsg": "string"
}
最后修改时间: 2 年前