export_dashboard_yaml

Export an authorized dashboard source as canonical project YAML. Pass exactly one of dashboardId or stableId. Instance sources export the current draft and require RESOURCE_EDIT; project sources export the retained source and require RESOURCE_READ.

Machine-readable: focused JSON · complete manifest

Contract

Property Value
Authorization authenticated
Effect read
Operation manual
Tags dashboard, authoring, export
Defaults {}
MCP annotations read-only, idempotent, non-destructive, closed-world

Input schema

{
  "additionalProperties": false,
  "properties": {
    "dashboardId": {
      "minLength": 1,
      "type": "string"
    },
    "sourceKind": {
      "enum": [
        "project",
        "instance"
      ],
      "type": "string"
    },
    "stableId": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "sourceKind"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "yaml": {
      "type": "string"
    }
  },
  "required": [
    "yaml"
  ],
  "type": "object"
}