{
  "opencollection": "1.0.0",
  "info": {
    "name": "Grafana Dashboard API",
    "version": "10.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Dashboards",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create Or Update Dashboard",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{grafana-host}/api/dashboards/db",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new dashboard or updates an existing one."
        },
        {
          "info": {
            "name": "Get Dashboard By UID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/dashboards/uid/:uid",
            "params": [
              {
                "name": "uid",
                "value": "",
                "type": "path",
                "description": "Dashboard unique identifier"
              }
            ]
          },
          "docs": "Retrieve a dashboard by its unique identifier (UID)."
        },
        {
          "info": {
            "name": "Delete Dashboard By UID",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{grafana-host}/api/dashboards/uid/:uid",
            "params": [
              {
                "name": "uid",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a dashboard by its UID."
        },
        {
          "info": {
            "name": "Search Dashboards",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/search",
            "params": [
              {
                "name": "query",
                "value": "",
                "type": "query",
                "description": "Search query string"
              },
              {
                "name": "tag",
                "value": "",
                "type": "query",
                "description": "Filter by tag"
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Resource type filter"
              },
              {
                "name": "folderIds",
                "value": "",
                "type": "query",
                "description": "Folder IDs to search within"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Search for dashboards and folders with optional filtering."
        }
      ]
    },
    {
      "info": {
        "name": "Datasources",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Datasources",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/datasources"
          },
          "docs": "Get all data sources for the current organization."
        },
        {
          "info": {
            "name": "Create Datasource",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{grafana-host}/api/datasources",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new data source."
        },
        {
          "info": {
            "name": "Get Datasource By ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/datasources/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a datasource by its numeric ID."
        },
        {
          "info": {
            "name": "Update Datasource",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{grafana-host}/api/datasources/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing datasource."
        },
        {
          "info": {
            "name": "Delete Datasource",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{grafana-host}/api/datasources/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a datasource by ID."
        }
      ]
    },
    {
      "info": {
        "name": "Organizations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Organizations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/orgs"
          },
          "docs": "List all organizations (admin only)."
        },
        {
          "info": {
            "name": "Create Organization",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{grafana-host}/api/orgs",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new organization."
        }
      ]
    },
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Organization Users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/org/users"
          },
          "docs": "Get all users in the current organization."
        }
      ]
    },
    {
      "info": {
        "name": "Teams",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Search Teams",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/teams/search",
            "params": [
              {
                "name": "query",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "perpage",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Search for teams in the organization."
        }
      ]
    },
    {
      "info": {
        "name": "Annotations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Annotations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/annotations",
            "params": [
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "Start time in milliseconds"
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "End time in milliseconds"
              },
              {
                "name": "dashboardId",
                "value": "",
                "type": "query"
              },
              {
                "name": "panelId",
                "value": "",
                "type": "query"
              },
              {
                "name": "tags",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Find annotations matching query parameters."
        },
        {
          "info": {
            "name": "Create Annotation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{grafana-host}/api/annotations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new annotation on a dashboard panel."
        }
      ]
    },
    {
      "info": {
        "name": "Folders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Folders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/folders"
          },
          "docs": "Get all folders in the current organization."
        },
        {
          "info": {
            "name": "Create Folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{grafana-host}/api/folders",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new folder for organizing dashboards."
        }
      ]
    },
    {
      "info": {
        "name": "Alerting",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Alert Rules",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{grafana-host}/api/v1/provisioning/alert-rules"
          },
          "docs": "Get all Grafana alerting rules."
        },
        {
          "info": {
            "name": "Create Alert Rule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{grafana-host}/api/v1/provisioning/alert-rules",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new Grafana alerting rule."
        }
      ]
    }
  ],
  "bundled": true
}