Sign in

Deactivate site widget

documented

Deactivate a widget on a site by its ID.

POST /sites/{site}/widgets/widget:{id}/deleteSitesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://public-api.wordpress.com/rest/v1.1/sites/{{$site}}/widgets/widget:{{$id}}/delete" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"context":"{{$context}}","fields":"{{$fields}}","note":"{{$note}}"}'