Microsoft Purview Types API

The Types API from Microsoft Purview — 2 operation(s) for types.

GitHub OpenAPI

Operations 2

GET /types/termtemplatedef/guid/{guid} Type get term template def by guid #
GET /types/termtemplatedef/name/{name} Type get term template def by name #

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/
📖
Authentication
https://learn.microsoft.com/en-us/purview/tutorial-using-rest-apis
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/data-gov-api-create-assets
📖
Authentication
https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/legacy/how-to-purview-custom-lineage-api-user-guide
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/legacy/tutorial-metadata-policy-collections-apis
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/unified-catalog-api-overview
📖
Authentication
https://learn.microsoft.com/en-us/purview/data-gov-api-rest-data-plane
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/unified-catalog-data-quality
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-ediscovery-apioverview?view=graph-rest-1.0
📖
Authentication
https://learn.microsoft.com/en-us/graph/security-ediscovery-appauthsetup
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/edisc-ref-api-guide
📖
Documentation
https://learn.microsoft.com/en-us/graph/security-information-protection-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/security-datasecurityandgovernance-overview
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/developer/use-the-api
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-recordsmanagement-overview?view=graph-rest-1.0

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/microsoft-purview:microsoft-purview-types-api"
All apis
curl "https://apis.io/api/v1/apis?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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

microsoft-purview-types-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Analytics Purview Data Map Types API
  version: '2023-09-01'
  description: 'Purview Data Map Service is a fully managed cloud service whose users can

    discover the data sources they need and understand the data sources they find.

    At the same time, Data Map helps organizations get more value from their

    existing investments. This spec defines REST API of Purview Data Map Service.'
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- OAuth2Auth:
  - https://purview.azure.net/.default
tags:
- name: Types
paths:
  /types/termtemplatedef/guid/{guid}:
    get:
      operationId: Type_GetTermTemplateDefByGuid
      description: Get the term template definition for the given GUID.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: guid
        in: path
        description: The globally unique identifier of the term template.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TermTemplateDef'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasErrorResponse'
      tags:
      - Types
      summary: Type get term template def by guid
      x-summary-source: derived
  /types/termtemplatedef/name/{name}:
    get:
      operationId: Type_GetTermTemplateDefByName
      description: Get the term template definition by its name (unique).
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: name
        in: path
        description: The unique name of the term template.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TermTemplateDef'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasErrorResponse'
      tags:
      - Types
      summary: Type get term template def by name
      x-summary-source: derived
components:
  schemas:
    TypeCategory:
      type: string
      description: Type Category
      enum:
      - PRIMITIVE
      - OBJECT_ID_TYPE
      - ENUM
      - STRUCT
      - CLASSIFICATION
      - ENTITY
      - ARRAY
      - MAP
      - RELATIONSHIP
      - TERM_TEMPLATE
      x-ms-enum:
        name: TypeCategory
        modelAsString: true
        values:
        - name: Primitive
          value: PRIMITIVE
          description: primitive
        - name: ObjectIdType
          value: OBJECT_ID_TYPE
          description: object id type
        - name: Enum
          value: ENUM
          description: enum
        - name: Struct
          value: STRUCT
          description: struct
        - name: Classification
          value: CLASSIFICATION
          description: classification
        - name: Entity
          value: ENTITY
          description: entity
        - name: Array
          value: ARRAY
          description: array
        - name: Map
          value: MAP
          description: map
        - name: Relationship
          value: RELATIONSHIP
          description: relationship
        - name: TermTemplate
          value: TERM_TEMPLATE
          description: term template
    DateFormat:
      type: object
      description: The date format.
      properties:
        availableLocales:
          type: array
          description: An array of available locales.
          items:
            type: string
        calendar:
          type: number
          format: float
          description: Calendar
        dateInstance:
          $ref: '#/components/schemas/DateFormat'
          description: The date format.
        dateTimeInstance:
          $ref: '#/components/schemas/DateFormat'
          description: The date format.
        instance:
          $ref: '#/components/schemas/DateFormat'
          description: The date format.
        lenient:
          type: boolean
          description: Determines the leniency of the date format.
        numberFormat:
          $ref: '#/components/schemas/NumberFormat'
          description: The number format.
        timeInstance:
          $ref: '#/components/schemas/DateFormat'
          description: The date format.
        timeZone:
          $ref: '#/components/schemas/TimeZone'
          description: The timezone information.
    Azure.Core.uuid:
      type: string
      format: uuid
      description: Universally Unique Identifier
    CardinalityValue:
      type: string
      description: Cardinality
      enum:
      - SINGLE
      - LIST
      - SET
      x-ms-enum:
        name: CardinalityValue
        modelAsString: true
        values:
        - name: Single
          value: SINGLE
          description: single
        - name: List
          value: LIST
          description: list
        - name: Set
          value: SET
          description: set
    RoundingMode:
      type: string
      description: Rounding Mode
      enum:
      - UP
      - DOWN
      - CEILING
      - FLOOR
      - HALF_UP
      - HALF_DOWN
      - HALF_EVEN
      - UNNECESSARY
      x-ms-enum:
        name: RoundingMode
        modelAsString: true
        values:
        - name: Up
          value: UP
          description: up
        - name: Down
          value: DOWN
          description: down
        - name: Ceiling
          value: CEILING
          description: ceiling
        - name: Floor
          value: FLOOR
          description: floor
        - name: HalfUp
          value: HALF_UP
          description: half up
        - name: HalfDown
          value: HALF_DOWN
          description: half down
        - name: HalfEven
          value: HALF_EVEN
          description: half even
        - name: Unnecessary
          value: UNNECESSARY
          description: unnecessary
    AtlasAttributeDef:
      type: object
      description: class that captures details of a struct-attribute.
      properties:
        cardinality:
          $ref: '#/components/schemas/CardinalityValue'
          description: single-valued attribute or multi-valued attribute.
        constraints:
          type: array
          description: An array of constraints.
          items:
            $ref: '#/components/schemas/AtlasConstraintDef'
        defaultValue:
          type: string
          description: The default value of the attribute.
        description:
          type: string
          description: The description of the attribute.
        includeInNotification:
          type: boolean
          description: Determines if it is included in notification.
        isIndexable:
          type: boolean
          description: Determines if it is indexable.
        isOptional:
          type: boolean
          description: Determines if it is optional.
        isUnique:
          type: boolean
          description: Determines if it unique.
        name:
          type: string
          description: The name of the attribute.
        options:
          type: object
          description: The options for the attribute.
          additionalProperties:
            type: string
        typeName:
          type: string
          description: The name of the type.
        valuesMaxCount:
          type: integer
          format: int32
          description: The maximum count of the values.
        valuesMinCount:
          type: integer
          format: int32
          description: The minimum count of the values.
    TimeZone:
      type: object
      description: The timezone information.
      properties:
        dstSavings:
          type: integer
          format: int32
          description: The value of the daylight saving time.
        id:
          type: string
          description: The ID of the timezone.
        availableIds:
          type: array
          description: An array of available IDs.
          items:
            type: string
        default:
          $ref: '#/components/schemas/TimeZone'
          description: The timezone information.
        displayName:
          type: string
          description: The display name of the timezone.
        rawOffset:
          type: integer
          format: int32
          description: The raw offset of the timezone.
    NumberFormat:
      type: object
      description: The number format.
      properties:
        availableLocales:
          type: array
          description: The number format.
          items:
            type: string
        currency:
          type: string
          description: The currency.
        currencyInstance:
          $ref: '#/components/schemas/NumberFormat'
          description: The number format.
        groupingUsed:
          type: boolean
          description: Determines if grouping is used.
        instance:
          $ref: '#/components/schemas/NumberFormat'
          description: The number format.
        integerInstance:
          $ref: '#/components/schemas/NumberFormat'
          description: The number format.
        maximumFractionDigits:
          type: integer
          format: int32
          description: The maximum of fraction digits.
        maximumIntegerDigits:
          type: integer
          format: int32
          description: The maximum of integer digits.
        minimumFractionDigits:
          type: integer
          format: int32
          description: The minimum of fraction digits.
        minimumIntegerDigits:
          type: integer
          format: int32
          description: The minimum of integer digits.
        numberInstance:
          $ref: '#/components/schemas/NumberFormat'
          description: The number format.
        parseIntegerOnly:
          type: boolean
          description: Determines if only integer is parsed.
        percentInstance:
          $ref: '#/components/schemas/NumberFormat'
          description: The number format.
        roundingMode:
          $ref: '#/components/schemas/RoundingMode'
          description: The enum of rounding mode.
    TermTemplateDef:
      type: object
      description: Term template definition for glossary term.
      properties:
        category:
          $ref: '#/components/schemas/TypeCategory'
          description: The enum of type category.
        createTime:
          type: integer
          format: int64
          description: The created time of the record.
        createdBy:
          type: string
          description: The user who created the record.
        dateFormatter:
          $ref: '#/components/schemas/DateFormat'
          description: The date format.
        description:
          type: string
          description: The description of the type definition.
        guid:
          type: string
          description: The GUID of the type definition.
        name:
          type: string
          description: The name of the type definition.
        options:
          type: object
          description: The options for the type definition.
          additionalProperties:
            type: string
        serviceType:
          type: string
          description: The service type.
        typeVersion:
          type: string
          description: The version of the type.
        updateTime:
          type: integer
          format: int64
          description: The update time of the record.
        updatedBy:
          type: string
          description: The user who updated the record.
        version:
          type: integer
          format: int64
          description: The version of the record.
        lastModifiedTS:
          type: string
          description: ETag for concurrency control.
        attributeDefs:
          type: array
          description: An array of attribute definitions.
          items:
            $ref: '#/components/schemas/AtlasAttributeDef'
    AtlasConstraintDef:
      type: object
      description: class that captures details of a constraint.
      properties:
        params:
          type: object
          description: The parameters of the constraint definition.
          additionalProperties: {}
        type:
          type: string
          description: The type of the constraint.
    AtlasErrorResponse:
      type: object
      description: An error response from the service
      properties:
        requestId:
          $ref: '#/components/schemas/Azure.Core.uuid'
          description: The request ID.
        errorCode:
          type: string
          description: The error code.
        errorMessage:
          type: string
          description: The error message.
  parameters:
    Azure.Core.Foundations.ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apiVersion
      schema:
        type: string
        minLength: 1
  securitySchemes:
    OAuth2Auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://purview.azure.net/.default: ''
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
x-ms-parameterized-host:
  hostTemplate: '{endpoint}/datamap/api'
  useSchemePrefix: false
  parameters:
  - name: endpoint
    in: path
    required: true
    type: string
    format: uri
    x-ms-skip-url-encoding: true