Microsoft Purview · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Microsoft Purview Records Management Retention Labels API

6 actions 6 updates phrasing extends openapi/microsoft-purview-retention-labels-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Microsoft Purview's API. It is a proposal applied on top of the contract, not a document Microsoft Purview publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/security/labels/retentionLabels'].get
$.paths['/security/labels/retentionLabels'].post
$.paths['/security/labels/retentionLabels/{retentionLabelId}'].get
$.paths['/security/labels/retentionLabels/{retentionLabelId}'].delete
$.paths['/security/labels/retentionLabels/{retentionLabelId}'].patch

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Microsoft Purview Records Management Retention Labels API
  version: 1.0.0
extends: openapi/microsoft-purview-retention-labels-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-10-01'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 5
- target: $.paths['/security/labels/retentionLabels'].get
  update:
    x-apievangelist-phrasing:
      intent: List retention labels
      effect: read
      questions:
      - What retention labels are configured in our organization?
      - Can I filter or sort retention labels?
      instructions:
      - text: List all retention labels.
      - text: Show retention labels matching {filter} ordered by {order}.
        slots:
          filter: query.$filter
          order: query.$orderby
      method: generated
      generated: '2026-10-01'
- target: $.paths['/security/labels/retentionLabels'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a retention label
      effect: write
      questions:
      - How do I create a label that keeps content for a set period?
      - Can a retention label delete content after the period ends?
      instructions:
      - text: Create retention label {name} with retention duration {duration}.
        slots:
          name: requestBody.displayName
          duration: requestBody.retentionDuration
      - text: Create label {name} that does {action} after the retention period.
        slots:
          name: requestBody.displayName
          action: requestBody.actionAfterRetentionPeriod
      method: generated
      generated: '2026-10-01'
- target: $.paths['/security/labels/retentionLabels/{retentionLabelId}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a retention label
      effect: read
      questions:
      - How long does a specific retention label keep content?
      - Is a particular retention label currently in use?
      instructions:
      - text: Show me retention label {label}.
        slots:
          label: path.retentionLabelId
      - text: Get retention label {label} expanding {expand}.
        slots:
          label: path.retentionLabelId
          expand: query.$expand
      method: generated
      generated: '2026-10-01'
- target: $.paths['/security/labels/retentionLabels/{retentionLabelId}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a retention label
      effect: destructive
      questions:
      - Can I delete a retention label that is no longer needed?
      - What is the way to remove a retention label?
      instructions:
      - text: Delete retention label {label}.
        slots:
          label: path.retentionLabelId
      - text: Remove label {label} from retention settings.
        slots:
          label: path.retentionLabelId
      method: generated
      generated: '2026-10-01'
- target: $.paths['/security/labels/retentionLabels/{retentionLabelId}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a retention label
      effect: write
      questions:
      - How do I change the retention period on an existing label?
      - Can I update the user-facing description of a retention label?
      instructions:
      - text: Change the retention duration of label {label} to {duration}.
        slots:
          label: path.retentionLabelId
          duration: requestBody.retentionDuration
      - text: Set the user description of retention label {label} to {description}.
        slots:
          label: path.retentionLabelId
          description: requestBody.descriptionForUsers
      method: generated
      generated: '2026-10-01'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/microsoft-purview-retention-labels-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.