Lodol Docs

WordPress

API actions for the WordPress integration.

WordPress

Connect to your WordPress site using an application password to manage posts, categories, tags, and comments.


Create a WordPress category

Add a new category to the WordPress site.

Parameters

ParameterTypeRequiredDescription
namestringYesName of the category
slugstringNoURL-friendly slug for the category
descriptionstringNoOptional category description

Response

{
  "category": {},
  "status": "mock_value"
}

Create a WordPress comment

Add a comment to a specific WordPress post.

Parameters

ParameterTypeRequiredDescription
post_idnumberYesIdentifier of the post to comment on
contentstringYesBody of the comment
author_namestringNoDisplay name of the commenter

Response

{
  "comment": {},
  "status": "mock_value"
}

Create a WordPress post

Publish a new post with the provided title and content.

Parameters

ParameterTypeRequiredDescription
titlestringYesTitle of the post
contentstringYesContent body for the post
statusstringNoPublish state such as draft or publish

Response

{
  "post": {},
  "status": "mock_value"
}

Delete a WordPress post

Remove a post from WordPress using a force delete.

Parameters

ParameterTypeRequiredDescription
post_idnumberYesIdentifier of the post
forcebooleanNoWhether to bypass the trash

Response

{
  "result": {},
  "status": "mock_value"
}

List WordPress categories

Retrieve categories available in WordPress.

Parameters

ParameterTypeRequiredDescription
per_pagenumberNoNumber of categories to fetch
searchstringNoSearch query for category names

Response

{
  "categories": {},
  "count": {},
  "status": "mock_value"
}

List WordPress posts

Retrieve a paginated list of posts from a WordPress site.

Parameters

ParameterTypeRequiredDescription
statusstringNoFilter posts by status such as publish or draft
searchstringNoSearch query to filter posts
per_pagenumberNoNumber of posts to return (max 100)

Response

{
  "count": {},
  "posts": {},
  "status": "mock_value"
}

List WordPress tags

Retrieve tags defined within WordPress.

Parameters

ParameterTypeRequiredDescription
per_pagenumberNoNumber of tags to fetch
searchstringNoSearch query for tag names

Response

{
  "count": {},
  "status": "mock_value",
  "tags": {}
}

Update post status

Change the status of a WordPress post.

Parameters

ParameterTypeRequiredDescription
post_idnumberYesIdentifier of the post
statusstringYesNew status value

Response

{
  "post": {},
  "status": "mock_value"
}

On this page