Skip to main content
PUT
/
plugin
/
{id}
Update add-on/plugin
curl --request PUT \
  --url https://apiweb.mile.app/api/v3/plugin/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form _method=PUT \
  --form 'name=<string>' \
  --form 'description=<string>'
{
  "status": true,
  "message": "Plugin updated successfully",
  "data": {
    "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"
  }
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

id
string
required

Plugin ID (MongoDB ObjectId). Must belong to your organization.

Body

multipart/form-data
_method
enum<string>
required

HTTP method override - must be 'PUT'

Available options:
PUT
name
string
required

Updated name of the add-on (3-100 characters, must be unique within your organization)

Required string length: 3 - 100
description
string
required

Response

Plugin updated successfully

status
boolean
required

Operation success status

Example:

true

message
string
required

Success message

Example:

"Plugin updated successfully"

data
object
required
Example:
{
"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"
}