Microsoft · Capability

Microsoft Power BI REST API — Imports

Microsoft Power BI REST API — Imports. 1 operations. Lead operation: Microsoft Import a PBIX file. Self-contained Naftiko capability covering one Microsoft business surface.

Run with Naftiko MicrosoftImports

What You Can Do

POST
Importfile — Microsoft Import a PBIX file
/v1/imports

MCP Tools

microsoft-import-pbix-file

Microsoft Import a PBIX file

Capability Spec

power-bi-imports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Power BI REST API — Imports
  description: 'Microsoft Power BI REST API — Imports. 1 operations. Lead operation: Microsoft Import a PBIX file. Self-contained
    Naftiko capability covering one Microsoft business surface.'
  tags:
  - Microsoft
  - Imports
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_API_KEY: MICROSOFT_API_KEY
capability:
  consumes:
  - type: http
    namespace: power-bi-imports
    baseUri: https://api.powerbi.com/v1.0/myorg
    description: Microsoft Power BI REST API — Imports business capability. Self-contained, no shared references.
    resources:
    - name: imports
      path: /imports
      operations:
      - name: importfile
        method: POST
        description: Microsoft Import a PBIX file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: datasetDisplayName
          in: query
          type: string
          description: Display name for the dataset
          required: true
        - name: nameConflict
          in: query
          type: string
          description: Action on name conflict
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_API_KEY}}'
  exposes:
  - type: rest
    namespace: power-bi-imports-rest
    port: 8080
    description: REST adapter for Microsoft Power BI REST API — Imports. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/imports
      name: imports
      description: REST surface for imports.
      operations:
      - method: POST
        name: importfile
        description: Microsoft Import a PBIX file
        call: power-bi-imports.importfile
        with:
          datasetDisplayName: rest.datasetDisplayName
          nameConflict: rest.nameConflict
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: power-bi-imports-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Power BI REST API — Imports. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: microsoft-import-pbix-file
      description: Microsoft Import a PBIX file
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: power-bi-imports.importfile
      with:
        datasetDisplayName: tools.datasetDisplayName
        nameConflict: tools.nameConflict
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.