Version: 202201
Update Page
PUT/openapi/2022-01/pages/:id
Update the details of an existing page using its unique identifier.
Request
Path Parameters
id stringrequired
Page's id
- application/json
- Body
- Example
Body
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
}
Responses
- 200
200
- application/json
- Schema
- Example
- Result
Schema
page object
idinteger
Default value:
0Example:
15978titlestring
Example:
updatecontentstring
Example:
statusinteger
Default value:
0Example:
1created_atstring
Example:
1714377411updated_atstring
Example:
1714378399urlstring
Example:
/pages/updatemeta_titlestring
Example:
updatemeta_keywordstring
Example:
meta_descriptionstring
Example:
independent_seoboolean
Default value:
trueExample:
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
}
}