Disable a tenant plugin.
curl --request PUT \ --url https://auth.example.com/api/admin/plugins/example/disable \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "tenant_id": "default" }'Disable a plugin for the current tenant and return the updated enabled state. A built-in human verification provider is refused with 409 while a flow requires it; both the canonical settings document and the KV copy are read, and either one requiring it counts. Known limit: a settings PATCH that makes a flow required and this disable, run at the same time, can both pass their checks; serialising them would need a shared coordinator.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Plugin identifier.
Request Body required
Section titled “Request Body required ”object
Example
{ "tenant_id": "default"}Responses
Section titled “ Responses ”Plugin enable or disable response.
object
object
Example
{ "success": true, "configSource": "kv", "provisioning": { "state": "pending", "kind": "provisioning" }}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}A built-in human verification (CAPTCHA) provider cannot be disabled while a flow of the tenant requires it (error: human_verification_provider_in_use, with settings naming the authentication-methods.human_verification.*_enabled settings that require it). Turn those settings off first.
object
Example
{ "error": "human_verification_provider_in_use"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}The tenant settings (the canonical document or the KV copy) could not be read to check whether a human verification provider is required (reason: settings_unavailable), so nothing was changed; try again. A malformed settings document counts as requiring nothing.
object
Example
{ "error": "temporarily_unavailable", "reason": "settings_unavailable"}