参数 | 类型 | 能否必填 | 阐明 |
card_type | String | 是 | 模版卡片的模版类型,文本告诉模版卡片的类型为text_notice |
source | Object | 否 | 卡片来源样式信息,不需求来源样式可不填写 |
source.icon_url | String | 否 | 来源图片的url |
source.desc | String | 否 | 来源图片的描画,建议不超过13个字 |
source.desc_color | Int | 否 | 来源文字的颜色,目前支持:0(默许)灰色,1黑色,2红色,3绿色 |
main_title | Object | 是 | 模版卡片的次要内容,包括一级标题和标题辅助信息 |
main_title.title | String | 否 | 一级标题,建议不超过26个字。模版卡片次要内容的一级标题main_title.title和二级普通文本sub_title_text必须有一项填写 |
main_title.desc | String | 否 | 标题辅助信息,建议不超过30个字 |
emphasis_content | Object | 否 | 关键数据样式 |
emphasis_content.title | String | 否 | 关键数据样式的数据内容,建议不超过10个字 |
emphasis_content.desc | String | 否 | 关键数据样式的数据描画内容,建议不超过15个字 |
quote_area | Object | 否 | 援用文献样式,建议不与关键数据共用 |
quote_area.type | Int | 否 | 援用文献样式区域点击事情,0或不填代表没有点击事情,1代表跳转url,2代表跳转小程序 |
quote_area.url | String | 否 | 点击跳转的url,quote_area.type是1时必填 |
quote_area.appid | String | 否 | 点击跳转的小程序的appid,quote_area.type是2时必填 |
quote_area.pagepath | String | 否 | 点击跳转的小程序的pagepath,quote_area.type是2时选填 |
quote_area.title | String | 否 | 援用文献样式的标题 |
quote_area.quote_text | String | 否 | 援用文献样式的援用文案 |
sub_title_text | String | 否 | 二级普通文本,建议不超过112个字。模版卡片次要内容的一级标题main_title.title和二级普通文本sub_title_text必须有一项填写 |
horizontal_content_list | Object[] | 否 | 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段能否必填,列表长度不超过6 |
horizontal_content_list.type | Int | 否 | 链接类型,0或不填代表是普通文本,1代表跳转url,2代表下载附件,3代表@员工 |
horizontal_content_list.keyname | String | 是 | 二级标题,建议不超过5个字 |
horizontal_content_list.value | String | 否 | 二级文本,假如horizontal_content_list.type是2,该字段代表文件称号(要包含文件类型),建议不超过26个字 |
horizontal_content_list.url | String | 否 | 链接跳转的url,horizontal_content_list.type是1时必填 |
horizontal_content_list.media_id | String | 否 | 附件的media_id,horizontal_content_list.type是2时必填 |
horizontal_content_list.userid | String | 否 | 被@的成员的userid,horizontal_content_list.type是3时必填 |
jump_list | Object[] | 否 | 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段能否必填,列表长度不超过3 |
jump_list.type | Int | 否 | 跳转链接类型,0或不填代表不是链接,1代表跳转url,2代表跳转小程序 |
jump_list.title | String | 是 | 跳转链接样式的文案内容,建议不超过13个字 |
jump_list.url | String | 否 | 跳转链接的url,jump_list.type是1时必填 |
jump_list.appid | String | 否 | 跳转链接的小程序的appid,jump_list.type是2时必填 |
jump_list.pagepath | String | 否 | 跳转链接的小程序的pagepath,jump_list.type是2时选填 |
card_action | Object | 是 | 全体卡片的点击跳转事情,text_notice模版卡片中该字段为必填项 |
card_action.type | Int | 是 | 卡片跳转类型,1代表跳转url,2代表打开小程序。text_notice模版卡片中该字段取值范围为[1,2] |
card_action.url | String | 否 | 跳转事情的url,card_action.type是1时必填 |
card_action.appid | String | 否 | 跳转事情的小程序的appid,card_action.type是2时必填 |
card_action.pagepath | String | 否 | 跳转事情的小程序的pagepath,card_action.type是2时选填 |
参数 | 类型 | 能否必填 | 阐明 |
card_type | String | 是 | 模版卡片的模版类型,图文展现模版卡片的类型为news_notice |
source | Object | 否 | 卡片来源样式信息,不需求来源样式可不填写 |
source.icon_url | String | 否 | 来源图片的url |
source.desc | String | 否 | 来源图片的描画,建议不超过13个字 |
source.desc_color | Int | 否 | 来源文字的颜色,目前支持:0(默许)灰色,1黑色,2红色,3绿色 |
main_title | Object | 是 | 模版卡片的次要内容,包括一级标题和标题辅助信息 |
main_title.title | String | 是 | 一级标题,建议不超过26个字 |
main_title.desc | String | 否 | 标题辅助信息,建议不超过30个字 |
card_image | Object | 是 | 图片样式 |
card_image.url | String | 是 | 图片的url |
card_image.aspect_ratio | Float | 否 | 图片的宽高比,宽高比要小于2.25,大于1.3,不填该参数默许1.3 |
image_text_area | Object | 否 | 左图右文样式 |
image_text_area.type | Int | 否 | 左图右文样式区域点击事情,0或不填代表没有点击事情,1代表跳转url,2代表跳转小程序 |
image_text_area.url | String | 否 | 点击跳转的url,image_text_area.type是1时必填 |
image_text_area.appid | String | 否 | 点击跳转的小程序的appid,必须是与当前运用关联的小程序,image_text_area.type是2时必填 |
image_text_area.pagepath | String | 否 | 点击跳转的小程序的pagepath,image_text_area.type是2时选填 |
image_text_area.title | String | 否 | 左图右文样式的标题 |
image_text_area.desc | String | 否 | 左图右文样式的描画 |
image_text_area.image_url | String | 是 | 左图右文样式的图片url |
quote_area | Object | 否 | 援用文献样式,建议不与关键数据共用 |
quote_area.type | Int | 否 | 援用文献样式区域点击事情,0或不填代表没有点击事情,1代表跳转url,2代表跳转小程序 |
quote_area.url | String | 否 | 点击跳转的url,quote_area.type是1时必填 |
quote_area.appid | String | 否 | 点击跳转的小程序的appid,quote_area.type是2时必填 |
quote_area.pagepath | String | 否 | 点击跳转的小程序的pagepath,quote_area.type是2时选填 |
quote_area.title | String | 否 | 援用文献样式的标题 |
quote_area.quote_text | String | 否 | 援用文献样式的援用文案 |
vertical_content_list | Object[] | 否 | 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段能否必填,列表长度不超过4 |
vertical_content_list.title | String | 是 | 卡片二级标题,建议不超过26个字 |
vertical_content_list.desc | String | 否 | 二级普通文本,建议不超过112个字 |
horizontal_content_list | Object[] | 否 | 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段能否必填,列表长度不超过6 |
horizontal_content_list.type | Int | 否 | 模版卡片的二级标题信息内容支持的类型,1是url,2是文件附件 |
horizontal_content_list.keyname | String | 是 | 二级标题,建议不超过5个字 |
horizontal_content_list.value | String | 否 | 二级文本,假如horizontal_content_list.type是2,该字段代表文件称号(要包含文件类型),建议不超过26个字 |
horizontal_content_list.url | String | 否 | 链接跳转的url,horizontal_content_list.type是1时必填 |
horizontal_content_list.media_id | String | 否 | 附件的media_id,horizontal_content_list.type是2时必填 |
jump_list | Object[] | 否 | 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段能否必填,列表长度不超过3 |
jump_list.type | Int | 否 | 跳转链接类型,0或不填代表不是链接,1代表跳转url,2代表跳转小程序 |
jump_list.title | String | 是 | 跳转链接样式的文案内容,建议不超过13个字 |
jump_list.url | String | 否 | 跳转链接的url,jump_list.type是1时必填 |
jump_list.appid | String | 否 | 跳转链接的小程序的appid,jump_list.type是2时必填 |
jump_list.pagepath | String | 否 | 跳转链接的小程序的pagepath,jump_list.type是2时选填 |
card_action | Object | 是 | 全体卡片的点击跳转事情,news_notice模版卡片中该字段为必填项 |
card_action.type | Int | 是 | 卡片跳转类型,1代表跳转url,2代表打开小程序。news_notice模版卡片中该字段取值范围为[1,2] |
card_action.url | String | 否 | 跳转事情的url,card_action.type是1时必填 |
card_action.appid | String | 否 | 跳转事情的小程序的appid,card_action.type是2时必填 |
card_action.pagepath | String | 否 | 跳转事情的小程序的pagepath,card_action.type是2时选填音讯发送频率限制 |
每个机器人发送的音讯不能超过20条/分钟。