Widgets

POST /plugins/Dantis/widget #

Resolve widget data

Validates a widget configuration for a project and returns its serialized configuration. On view, edit, or create pages the response also contains widget data when that widget supports it; widget data failures are returned in the widget's error property.

Request body required

project_id integer · int32 required
page string Controls whether resolved widget data is attached. `list` is used internally for dashboard lists. view edit create
widget string required

Responses

  • 200 Serialized widget and, for non-list pages, its resolved data.
    "string"
  • 400 Invalid project, dashboard ID/name, widget, filter, or dashboard definition.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 401 Authentication is required or the API token is invalid.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
  • 403 The authenticated user lacks the required project or dashboard permission.
    message string required
    code integer
    localized string
    {
        "message": "string",
        "code": 1,
        "localized": "string"
    }
cURL
curl -X POST \
  -H "Authorization: Bearer $MANTIS_TOKEN" \
  -H "Content-Type: application/json" \
  https://yourmantishubname.mantishub.io/api/rest/plugins/Dantis/widget \
  -d '{
    "project_id": 1,
    "page": "view",
    "widget": "string"
}'
Request body · application/json
{
    "project_id": 1,
    "page": "view",
    "widget": "string"
}