Modify permanent graphics and text materials
Modify permanent graphic material
## Developers can modify permanent graphic and text materials through this interface.
Please note: 1. You can also save graphic messages (permanent graphic and text materials) in the material management module of the official website of the public platform.2. Calling this interface requires https protocol
http request method: POSThttps://api.weixin.qq.com/cgi-bin/material/ update_news?access_token=ACCESS_TOKEN
Call example{
"media_id":MEDIA_ID,
"index":INDEX,
"articles": {
"title": TITLE,
"thumb_media_id": THUMB_MEDIA_ID,
"author": AUTHOR,
"digest": DIGEST,
"show_cover_pic": SHOW_COVER_PIC( 0 / 1),
"content": CONTENT,
"content_source_url": CONTENT_SOURCE_URL
}
}
Parameter description
Parameter | Is it necessary | Description |
media_id | is | The id of the graphic message to be modified |
index | is | The id of the article to be updated is in the graphic message Position (this field is only meaningful when there are multiple graphic messages), the first article is 0 |
title | is | Title |
thumb_media_id | is the cover image material id of the | graphic message (must be a permanent mediaID) |
author | is | author |
digest | is | Summary of graphic messages. Only single graphic messages have abstracts. Multiple graphic messages are left empty. |
show_cover_pic | Yes | YesNo Display the cover, 0 is false, that is, not displayed, 1 is true, that is, |
content | is the specific content of | graphic message, supports HTML tags, must be less than 20,000 characters, less than 1M, and JS | will be removed here
content_source_url | is the original address of the | graphic message, that is, the URL after clicking "Read Original" |
Return instructions
{
"errcode": ERRCODE,
"errmsg": ERRMSG
}
"errcode": ERRCODE,
"errmsg": ERRMSG
}
When correct, the value of errcode should be 0.