Creates a new add-on/plugin for your organization with JavaScript resource file and optional SVG icon. The plugin extends functionality within the Mile V3 platform for your organization.
Use a valid Bearer token to authenticate.
Name of the add-on/plugin (3-100 characters, must be unique within your organization)
3 - 100JavaScript file (.js) containing the add-on code (max 5MB). Must contain valid JavaScript syntax.
SVG icon file (.svg) for the add-on (max 500KB, optional)
Plugin created successfully
Operation success status
true
Success message
"Plugin created successfully"
{
"id": "68b440c9dad4c5d45707f6d2",
"name": "Custom Dashboard Widget",
"description": "A custom widget for displaying real-time analytics data",
"resourceFile": "1756656087_Custom-Dashboard-Widget.js",
"icon": "https://cdn.mile.app/plugins/icons/1756656087_dashboard-widget.svg",
"organizationId": "686cc0ff083ca8093204f002",
"resourceUrl": "https://cdn.mile.app/plugins/2025/08/31/686cc0ff083ca8093204f002/1756656087_Custom-Dashboard-Widget.js",
"createdBy": "user@mile.app",
"updatedBy": "user@mile.app",
"createdTime": "2025-08-31T10:30:00.000000Z",
"updatedTime": "2025-08-31T10:35:00.000000Z",
"organizationName": "MileApp",
"isUsed": false,
"customModuleId": null,
"status": "active"
}