Microsoft Dynamics 365 · Capability

Microsoft Dynamics 365 Dataverse Web API — Opportunities

Microsoft Dynamics 365 Dataverse Web API — Opportunities. 5 operations. Lead operation: Microsoft Dynamics 365 List opportunities. Self-contained Naftiko capability covering one Microsoft Dynamics 365 business surface.

Run with Naftiko Microsoft Dynamics 365Opportunities

What You Can Do

GET
Listopportunities — Microsoft Dynamics 365 List opportunities
/v1/opportunities
POST
Createopportunity — Microsoft Dynamics 365 Create an opportunity
/v1/opportunities
GET
Getopportunity — Microsoft Dynamics 365 Retrieve an opportunity
/v1/opportunities-opportunityid
PATCH
Updateopportunity — Microsoft Dynamics 365 Update an opportunity
/v1/opportunities-opportunityid
DELETE
Deleteopportunity — Microsoft Dynamics 365 Delete an opportunity
/v1/opportunities-opportunityid

MCP Tools

microsoft-dynamics-365-list-opportunities

Microsoft Dynamics 365 List opportunities

read-only idempotent
microsoft-dynamics-365-create-opportunity

Microsoft Dynamics 365 Create an opportunity

microsoft-dynamics-365-retrieve-opportunity

Microsoft Dynamics 365 Retrieve an opportunity

read-only idempotent
microsoft-dynamics-365-update-opportunity

Microsoft Dynamics 365 Update an opportunity

idempotent
microsoft-dynamics-365-delete-opportunity

Microsoft Dynamics 365 Delete an opportunity

idempotent

Capability Spec

dataverse-web-opportunities.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Dynamics 365 Dataverse Web API — Opportunities
  description: 'Microsoft Dynamics 365 Dataverse Web API — Opportunities. 5 operations. Lead operation: Microsoft Dynamics
    365 List opportunities. Self-contained Naftiko capability covering one Microsoft Dynamics 365 business surface.'
  tags:
  - Microsoft Dynamics 365
  - Opportunities
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_DYNAMICS_365_API_KEY: MICROSOFT_DYNAMICS_365_API_KEY
capability:
  consumes:
  - type: http
    namespace: dataverse-web-opportunities
    baseUri: https://{org}.api.crm.dynamics.com/api/data/v9.2
    description: Microsoft Dynamics 365 Dataverse Web API — Opportunities business capability. Self-contained, no shared references.
    resources:
    - name: opportunities
      path: /opportunities
      operations:
      - name: listopportunities
        method: GET
        description: Microsoft Dynamics 365 List opportunities
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createopportunity
        method: POST
        description: Microsoft Dynamics 365 Create an opportunity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: opportunities({opportunityid})
      path: /opportunities({opportunityid})
      operations:
      - name: getopportunity
        method: GET
        description: Microsoft Dynamics 365 Retrieve an opportunity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateopportunity
        method: PATCH
        description: Microsoft Dynamics 365 Update an opportunity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteopportunity
        method: DELETE
        description: Microsoft Dynamics 365 Delete an opportunity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_DYNAMICS_365_API_KEY}}'
  exposes:
  - type: rest
    namespace: dataverse-web-opportunities-rest
    port: 8080
    description: REST adapter for Microsoft Dynamics 365 Dataverse Web API — Opportunities. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/opportunities
      name: opportunities
      description: REST surface for opportunities.
      operations:
      - method: GET
        name: listopportunities
        description: Microsoft Dynamics 365 List opportunities
        call: dataverse-web-opportunities.listopportunities
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createopportunity
        description: Microsoft Dynamics 365 Create an opportunity
        call: dataverse-web-opportunities.createopportunity
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/opportunities-opportunityid
      name: opportunities-opportunityid
      description: REST surface for opportunities({opportunityid}).
      operations:
      - method: GET
        name: getopportunity
        description: Microsoft Dynamics 365 Retrieve an opportunity
        call: dataverse-web-opportunities.getopportunity
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateopportunity
        description: Microsoft Dynamics 365 Update an opportunity
        call: dataverse-web-opportunities.updateopportunity
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteopportunity
        description: Microsoft Dynamics 365 Delete an opportunity
        call: dataverse-web-opportunities.deleteopportunity
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: dataverse-web-opportunities-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Dynamics 365 Dataverse Web API — Opportunities. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: microsoft-dynamics-365-list-opportunities
      description: Microsoft Dynamics 365 List opportunities
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: dataverse-web-opportunities.listopportunities
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-365-create-opportunity
      description: Microsoft Dynamics 365 Create an opportunity
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: dataverse-web-opportunities.createopportunity
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-365-retrieve-opportunity
      description: Microsoft Dynamics 365 Retrieve an opportunity
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: dataverse-web-opportunities.getopportunity
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-365-update-opportunity
      description: Microsoft Dynamics 365 Update an opportunity
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: dataverse-web-opportunities.updateopportunity
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-dynamics-365-delete-opportunity
      description: Microsoft Dynamics 365 Delete an opportunity
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: dataverse-web-opportunities.deleteopportunity
      outputParameters:
      - type: object
        mapping: $.