Skip to main content

System status tools

The system status tools API allows you to view and run tools from system status.

System status tool properties​

AttributeTypeDescription
idstringA unique identifier for the tool. READ-ONLY
namestringTool name. READ-ONLY
actionstringWhat running the tool will do. READ-ONLY
descriptionstringTool description. READ-ONLY
successbooleanDid the tool run successfully? READ-ONLY WRITE-ONLY
messagestringTool return message. READ-ONLY WRITE-ONLY
confirmbooleanConfirm execution of the tool. Default is false. WRITE-ONLY

Retrieve a tool from system status​

This API lets you retrieve and view a specific tool from system status by ID.

GET /wp-json/wc/v3/system_status/tools/<id>
curl https://example.com/wp-json/wc/v3/system_status/tools/clear_transients \
-u consumer_key:consumer_secret

List all tools from system status​

This API helps you to view all tools from system status.

GET /wp-json/wc/v3/system_status/tools
curl https://example.com/wp-json/wc/v3/system_status/tools \
-u consumer_key:consumer_secret

Run a tool from system status​

This API lets you run a tool from system status.

PUT /wp-json/wc/v3/system_status/tools/<id>
curl -X PUT https://example.com/wp-json/wc/v3/system_status/tools/clear_transients \
-u consumer_key:consumer_secret \
-H "Content-Type: application/json" \
-d '{
"confirm": true
}'