WordPress

Execute wp cli command on site.

For a given site, execute a wp cli command.

post/v1/sites/{id}/wpcli

Request

  • Base URL
    https://api.rocket.net
  • Auth
    HTTP bearer

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": []
}

Changes

No recorded changes to this operation across all 1 revision of this API.