返回 WordPress
将 Knoon AI 与 WordPress 连接以自动化 AI 工作流。
Update an existing post/page/custom post type item.
wordpressXmlRpcDefaultDefaultUpdatePost
测试版
内部
权限
没有可显示的项目。
可选权限
没有可显示的项目。
参数
| 名称 | 类型 | 描述 | 必填 |
|---|---|---|---|
| postType | mustache | Optional collection slug. Defaults to posts. | 没有 |
| postId | mustache | WordPress post ID. Either postId or slug is required. | 没有 |
| slug | mustache | Post slug. Either postId or slug is required. | 没有 |
| title | mustache | Updated post title. | 没有 |
| html | mustache | Updated HTML content. | 没有 |
| markdown | mustache | Updated markdown content (converted to HTML when html is omitted). | 没有 |
| excerpt | mustache | Updated excerpt. | 没有 |
| status | string | Updated post status. | 没有 |
| featuredMediaId | mustache | Updated featured media ID. | 没有 |
回报
| 名称 | 类型 | 描述 |
|---|---|---|
| postId | string | WordPress post ID. |
| slug | string | Post slug. |
| status | string | Post status. |
| url | string | Post permalink. |
| title | string | Rendered post title. |
| excerpt | string | Rendered post excerpt HTML. |
| content | string | Rendered post content HTML. |
| featuredMediaId | string | Featured media ID if set. |
| createdAt | string | Post created datetime. |
| updatedAt | string | Post last modified datetime. |