Microsoft Purview · Capability

Microsoft Purview Records Management API — Retention Events

Microsoft Purview Records Management API — Retention Events. 4 operations. Lead operation: Microsoft Purview List retention events. Self-contained Naftiko capability covering one Microsoft Purview business surface.

Run with Naftiko Microsoft PurviewRetention Events

What You Can Do

GET
Listretentionevents — Microsoft Purview List retention events
/v1/security/triggers/retentionevents
POST
Createretentionevent — Microsoft Purview Create a retention event
/v1/security/triggers/retentionevents
GET
Getretentionevent — Microsoft Purview Get a retention event
/v1/security/triggers/retentionevents/{retentioneventid}
DELETE
Deleteretentionevent — Microsoft Purview Delete a retention event
/v1/security/triggers/retentionevents/{retentioneventid}

MCP Tools

microsoft-purview-list-retention-events

Microsoft Purview List retention events

read-only idempotent
microsoft-purview-create-retention-event

Microsoft Purview Create a retention event

microsoft-purview-get-retention-event

Microsoft Purview Get a retention event

read-only idempotent
microsoft-purview-delete-retention-event

Microsoft Purview Delete a retention event

idempotent

Capability Spec

records-management-retention-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Purview Records Management API — Retention Events
  description: 'Microsoft Purview Records Management API — Retention Events. 4 operations. Lead operation: Microsoft Purview
    List retention events. Self-contained Naftiko capability covering one Microsoft Purview business surface.'
  tags:
  - Microsoft Purview
  - Retention Events
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_PURVIEW_API_KEY: MICROSOFT_PURVIEW_API_KEY
capability:
  consumes:
  - type: http
    namespace: records-management-retention-events
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Purview Records Management API — Retention Events business capability. Self-contained, no shared
      references.
    resources:
    - name: security-triggers-retentionEvents
      path: /security/triggers/retentionEvents
      operations:
      - name: listretentionevents
        method: GET
        description: Microsoft Purview List retention events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $top
          in: query
          type: integer
        - name: $filter
          in: query
          type: string
        - name: $expand
          in: query
          type: string
      - name: createretentionevent
        method: POST
        description: Microsoft Purview Create a retention event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: security-triggers-retentionEvents-retentionEventId
      path: /security/triggers/retentionEvents/{retentionEventId}
      operations:
      - name: getretentionevent
        method: GET
        description: Microsoft Purview Get a retention event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: retentionEventId
          in: path
          type: string
          required: true
        - name: $expand
          in: query
          type: string
      - name: deleteretentionevent
        method: DELETE
        description: Microsoft Purview Delete a retention event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: retentionEventId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_PURVIEW_API_KEY}}'
  exposes:
  - type: rest
    namespace: records-management-retention-events-rest
    port: 8080
    description: REST adapter for Microsoft Purview Records Management API — Retention Events. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/security/triggers/retentionevents
      name: security-triggers-retentionevents
      description: REST surface for security-triggers-retentionEvents.
      operations:
      - method: GET
        name: listretentionevents
        description: Microsoft Purview List retention events
        call: records-management-retention-events.listretentionevents
        with:
          $top: rest.$top
          $filter: rest.$filter
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createretentionevent
        description: Microsoft Purview Create a retention event
        call: records-management-retention-events.createretentionevent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/security/triggers/retentionevents/{retentioneventid}
      name: security-triggers-retentionevents-retentioneventid
      description: REST surface for security-triggers-retentionEvents-retentionEventId.
      operations:
      - method: GET
        name: getretentionevent
        description: Microsoft Purview Get a retention event
        call: records-management-retention-events.getretentionevent
        with:
          retentionEventId: rest.retentionEventId
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteretentionevent
        description: Microsoft Purview Delete a retention event
        call: records-management-retention-events.deleteretentionevent
        with:
          retentionEventId: rest.retentionEventId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: records-management-retention-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Purview Records Management API — Retention Events. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: microsoft-purview-list-retention-events
      description: Microsoft Purview List retention events
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: records-management-retention-events.listretentionevents
      with:
        $top: tools.$top
        $filter: tools.$filter
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-create-retention-event
      description: Microsoft Purview Create a retention event
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: records-management-retention-events.createretentionevent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-get-retention-event
      description: Microsoft Purview Get a retention event
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: records-management-retention-events.getretentionevent
      with:
        retentionEventId: tools.retentionEventId
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-delete-retention-event
      description: Microsoft Purview Delete a retention event
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: records-management-retention-events.deleteretentionevent
      with:
        retentionEventId: tools.retentionEventId
      outputParameters:
      - type: object
        mapping: $.