Enable a tenant plugin.
curl --request PUT \ --url https://auth.example.com/api/admin/plugins/example/enable \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "tenant_id": "default", "resource_selections": [ { "logical_resource_id": "plugin_cache", "mode": "existing", "provider_resource_id": "4ef60e8d359f4eb59b0af5cfadf02af1", "provider_name": "existing-plugin-cache" } ] }'Enable a plugin for the current tenant after verifying that all required configuration fields are present. Dynamic Worker plugins with dedicated resources return 202 while the Control Worker provisions and verifies those resources; the plugin remains disabled until the activation gate is ready. Dynamic Worker (external) plugins run custom code, so enabling one also needs the tenant’s plugin.enabled setting to be on (off by default); otherwise the request is refused with 403 and error external_plugin_execution_not_allowed. Built-in plugins (email providers, CAPTCHA providers) are not affected by plugin.enabled. The gate for external plugin code in ar-plugin-runner is opened from the saved setting just before the plugin is switched on; if the setting or the gate is unavailable the request is refused with 503 (temporarily_unavailable).
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
object
Example
{ "tenant_id": "default", "resource_selections": [ { "logical_resource_id": "plugin_cache", "mode": "existing", "provider_resource_id": "4ef60e8d359f4eb59b0af5cfadf02af1", "provider_name": "existing-plugin-cache" } ]}Responses
Section titled “ Responses ”Plugin enable or disable response.
object
object
Example
{ "success": true, "configSource": "kv", "provisioning": { "state": "pending", "kind": "provisioning" }}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"}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"}