版本:202201
更新自定义页面
PUT/openapi/2022-01/pages/:id
通过自定义页面 ID 更新指定自定义页面的详情。
请求
Path参数
id string必填
唯一标识。
- application/json
- 请求体
- 示例
请求体
titlestring
The title of the page.
contentstring
Page content
urlstring
The url of the page.
meta_titlestring
The SEO title of the page.
meta_keywordstring
The SEO keyword of the page.
meta_descriptionstring
The SEO description of the page.
independent_seoboolean
Decide whether the seo title is edited independently.
{
"title": "string",
"content": "string",
"url": "string",
"meta_title": "string",
"meta_keyword": "string",
"meta_description": "string",
"independent_seo": true
}
响应
- 200
200
- application/json
- 数据结构
- 示例
- Result
数据结构
page object
idinteger
默认值:
0示例:
15978titlestring
示例:
updatecontentstring
示例:
statusinteger
默认值:
0示例:
1created_atstring
示例:
1714377411updated_atstring
示例:
1714378399urlstring
示例:
/pages/updatemeta_titlestring
示例:
updatemeta_keywordstring
示例:
meta_descriptionstring
示例:
independent_seoboolean
默认值:
true示例:
false{
"page": {
"id": 15978,
"title": "update",
"content": "",
"status": 1,
"created_at": "1714377411",
"updated_at": "1714378399",
"url": "/pages/update",
"meta_title": "update",
"meta_keyword": "",
"meta_description": "",
"independent_seo": false
}
}
{
"page": {
"id": 15978,
"title": "update",
"content": "",
"status": 1,
"created_at": "1714377411",
"updated_at": "1714378399",
"url": "/pages/update",
"meta_title": "update",
"meta_keyword": "",
"meta_description": "",
"independent_seo": false
}
}