Skip to Content
🎉 New release with new features and improvements! V0.0.4 Release →

Install Core Plugin

Reinstall the built-in core plugin. This endpoint is useful for:

  • Resetting core entities/schemas to default
  • Applying updates after engine upgrade
  • Development and testing

The core plugin contains the base entities, schemas, and configurations required for the BSH Engine to function properly.

Endpoint

POST /api/plugins/install/core Content-Type: multipart/form-data

No request body is required for this endpoint.

Example Request

curl -X POST "http://localhost:7071/api/plugins/install/core"

Response

Success Response (200 OK)

{ "status": 200, "message": "Plugin installed", "data": { "history": 12346, "pluginId": "core", "pluginName": "BSH Core Plugin", "totalFiles": 25, "successCount": 25, "failedCount": 0 } }

Configuration

The core plugin installation behavior can be configured via bshconfig.json:

{ "plugin": { "coreInstallMode": "Once" } }
SettingValuesDescription
coreInstallModeOnceCore plugin installed only on first startup
AlwaysCore plugin reinstalled on every startup

See Also