Modify permanent graphics and text materials


Modify permanent graphic material

1474938925217218.jpg

## 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

Interface call request description

http request method: POST

https://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

is displayed will be removed here
ParameterIs it necessaryDescription
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)
authorisauthor
digestis Summary of graphic messages. Only single graphic messages have abstracts. Multiple graphic messages are left empty.
show_cover_picYesYesNo 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
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
}

When correct, the value of errcode should be 0.