编辑-文章
PUT
/v1_0/mp/articles/{target}编辑-文章
请求参数
Path 参数
target
string
文章id
示例值:
91149583-ec52-4bc2-8cae-4e2e12934e6e
Query 参数
draft
string
可选
是否存为草稿,true是 false否
示例值:
false
Header 参数
Authorization
string
必需
Bearer token值 例如: Bearer 2d087800-f3a5-4a66-9feb-74404d350943
示例值:
{{GK_ACCESS_TOKEN}}
Body 参数application/json
id
string
文章id
title
string
文章标题
channel_id
integer
文章频道id
content
string
文章内容
cover
object
文章封面对象
type
integer
文章封面类型
封面类型 -1:自动,0-无图,1-1张,3-3张
images
array[string]
文章封面数组
pub_date
string
文章发布时间
示例
{
"id": "91149583-ec52-4bc2-8cae-4e2e12934e6e",
"title": "修改后标题",
"channel_id": 6,
"content": "<p>我是文章内容123</p>",
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/uploads/1659338630976.jpg"
]
},
"pub_date": "2022-08-01 15:24:02"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
响应数据
id
string
文章id
message
string
响应消息
示例
成功示例
{
"data": {
"id": "91149583-ec52-4bc2-8cae-4e2e12934e6e"
},
"message": "OK"
}
最后修改时间: 3 年前