Disable plugin
documentedDisable a plugin on the Discourse instance.
POST /admin/plugins/{plugin_name}.jsonAdminno implementation yet0 runsNo 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://api.discourse.org/v1/admin/plugins/{{$plugin_name}}.json" \
-X POST \
-H "Api-Key: {{DISCOURSE_API_KEY}}" \
-H "Api-Username: {{DISCOURSE_API_USERNAME}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"enabled": {{$enabled}}, "config": {{$config}}}'