Back to WordPress
Connect Knoon AI with WordPress to automate AI workflows.
Create a new post/page/custom post type item in WordPress.
wordpressXmlRpcDefaultDefaultCreatePost
BETA
Internal
Permissions
There are no items to display.
Optional permissions
There are no items to display.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| postType | mustache | Optional collection slug. Defaults to posts. | No |
| title | mustache | Post title. | Yes |
| slug | mustache | Optional post slug. | No |
| html | mustache | HTML post content. Required if markdown is omitted. | No |
| markdown | mustache | Markdown post content. Converted to HTML when html is omitted. | No |
| excerpt | mustache | Optional post excerpt. | No |
| status | string | Post status. Defaults to DRAFT. | No |
| featuredMediaId | mustache | Optional featured media ID. | No |
Returns
| Name | Type | Description |
|---|---|---|
| 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. |