Cập nhật nội dung
HTTP request
- URL: https://openapi.zalo.me/v2.0/article/update
- Method: POST
- Content Type: application/json
- Reponse Type: text/json
Sample
curl \
-X POST \
-H "Content-Type: application/json" \
-H "access_token: <ACCESS_TOKEN>" \
-d '{
"id": "a45424s214ddertd214g",
"type": "normal",
"title": "News",
"author": "News",
"cover": {
"cover_type": "photo",
"photo_url": "url",
"status": "show"
},
"description": "This is news",
"status": "show",
"body": [
{
"type": "text",
"content": "This is news"
},
{
"type": "text",
"content": "This is news"
}
],
"comment": "show"
}' \
'https://openapi.zalo.me/v2.0/article/update'
Tham số header
Tham số | Kiểu dữ liệu | ính bắt buộc | Mô tả |
|---|---|---|---|
String | Yes | Xem hướng dẫn lấy access_token ở đây. |
Cấu trúc body
Cấu trúc body là một nội dung dạng bài viết hoặc nội dung dạng bài viết gắn video
Respond
{
"error": 0,
"message": "Success",
"data": {
"token": "9xk090B1ANibkhyg9ke8SZgMg39Pz7bNJvJvKrpA821_XVbaI-Dr9ME5ma44nqGPOw3dKmR2SreHY_yaUiOcMrkWX0XknWH0IOQtEY_N1r9Ahu8xJT9QEIU9paOpwc0QDhhqSmU3So8WmlqcEvDEKb_euG5CbKHp9kJS432-35aKsOzSQva30L2cabKwcZqJNwkvQ63M7Mf7bQml9SK5BZJyZ4O8jmT16OwbFNdmA4iIdQPETiq8EtUkhM0AYMCHDkNmJWs9CLPkgFuBJ9Gm536kw1DQb34I9xF_4qE2BX4fk_uJIOKl6ZIYuH9LdpaMPAxi5mILRn5XgxmNLi8v56VywqLGnJaGDJ4mKWZXC0_G15"
}
}