| 错误码 | 说明 |
|---|---|
| 21301 | 传递过来的标签id重复或不存在 |
| 21307 | 参数缺失 |
| 21308 | mtype参数不正确,只能选择("poster", "pdf", "word", "excel", "ppt") |
| 调用此接口需购买基础席位。 |
{
"mtype": "string",
"title": "string",
"thumb_url": "string",
"url": "string",
"digest": "string",
"file_size": "string",
"group_id_list": [
"string"
],
"material_tag_id_list": [
0
]
}curl --location --request POST 'https://open.weibanzhushou.com/open-api/material_library/add?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"mtype": "string",
"title": "string",
"thumb_url": "string",
"url": "string",
"digest": "string",
"file_size": "string",
"group_id_list": [
"string"
],
"material_tag_id_list": [
0
]
}'{
"errcode": 0,
"errmsg": "ok",
"material_library": {
"digest": "",
"file_id": null,
"file_size": "",
"id": 0,
"is_publish": false,
"mtype": "link",
"publish_status": "first_no_review",
"thumb_url": "",
"title": "",
"url": ""
}
}