页面

页面属性

页面属性 data

属性名
说明
必填
类型

ID

页面id

[int]

post_date

创建时间(local)

[datetime]

post_date_gmt

创建时间(GMT)

[datetime]

post_modified

更新时间(local)

[datetime]

post_modified_gmt

更新时间(GMT)

[datetime]

title

页面标题

[string]

content

页面内容

[string]

status

页面状态

[string]

slug

页面slug

[string]

seo_title

页面SEO标题

[string]

seo_description

页面SEO描述

[string]

public_url

标题链接

[string]

base_url

主链接

[string]

path

路径

[string]

update_date_gmt

更新时间GMT

[datetime]

template

模板类型

[string]

属性名
说明
必填
类型

first

第一页

[string]

last

最后一页

[string]

prev

上一页

[string]

next

下一页

[string]

列表参数 meta

属性名
说明
必填
类型

current_page

当前页码

[int]

from

当前页起始条数号

[number]]

last_page

尾页页码

[number]

path

分页基本url

[string]

per_page

每页显示条数

[number]

to

当前页结束条数号

[number]

total

数据总数

[number]

获取页面列表

GET /openapi/2024-10/pages

权限要求:read_content

Headers

Name
Type
Description

Authorization

String

Authorization

Accept

String

Accept

获取单个页面详情

GET /openapi/2024-10/pages/{id}

权限要求:read_content

Headers

Name
Type
Description

Authorization

String

Authorization

Accept

String

Accept

Request Body

Name
Type
Description

id

[int]

请求id

更新页面信息

PUT /openapi/2024-10/pages/{id}

权限要求:read_content

Headers

Name
Type
Description

Authorization

String

Authorization

Accept

String

Accept

Request Body

Name
Type
Description

id

int

页面id

title

String

标题

status

String

状态

content

String

内容

seo_title

String

SEO标题

seo_description

String

SEO描述

slug

String

每个页面的SLUG必须唯一

template

String

模板类型

删除页面

DELETE /openapi/2024-10/pages/{id}

权限要求:write_content

Headers

Name
Type
Description

Authorization

String

Authorization

Accept

String

Accept

Request Body

Name
Type
Description

id

int

页面id

创建页面

POST /openapi/2024-10/pages

权限要求:write_content

Headers

Name
Type
Description

Authorization

String

Authorization

Accept

String

Accept

Request Body

Name
Type
Description

title

String

标题

content

String

内容

status

String

状态

template

String

模板类型

Last updated