v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
WordPress

Execute wp cli command on site.

For a given site, execute a wp cli command.

post/v1/sites/{id}/wpcli

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Request body

commandstring required

The command to execute

Example request

{
  "command": "user list --format=json --skip-plugins --skip-themes"
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": []
}