Microsoft Purview · Arazzo Workflow

Microsoft Purview Relate Two Catalog Entities

Version 1.0.0

Create an entity, then create a relationship linking it to another entity.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub ComplianceData CatalogData ClassificationData GovernanceData Loss PreventionInformation ProtectionArazzoWorkflows

Provider

microsoft-purview

Workflows

relate-entities
Create an entity and relate it to an existing entity.
Creates a source entity, resolves its GUID, creates a typed relationship between it and a target entity, and reads the relationship back.
4 steps inputs: authorization, end1TypeName, end2TypeName, entity, relationshipTypeName, targetEntityGuid outputs: relationshipGuid, sourceGuid
1
createEntity
Create or update the source entity for the relationship.
2
getEntity
Read the source entity back by its assigned GUID.
3
createRelationship
Create a typed relationship connecting the source entity to the target entity using their GUIDs.
4
getRelationship
Read the relationship back by its GUID to confirm it was created.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Purview Relate Two Catalog Entities
  summary: Create an entity, then create a relationship linking it to another entity.
  description: >-
    Builds a relationship edge between two assets in the Purview Atlas catalog.
    The workflow creates or updates a source entity, resolves its assigned GUID,
    creates a relationship connecting it to a supplied target entity GUID, and
    reads the relationship back to confirm it was stored. Every step spells out
    its request inline — including the inline OAuth2 bearer token — so the flow
    can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-610.10
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-610.10
      capability_name: Data Governance Management
      spec: microsoft-purview-entity-api-openapi.yml
      confidence: 0.7
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: entityApi
  url: ../openapi/microsoft-purview-entity-api-openapi.yml
  type: openapi
- name: relationshipApi
  url: ../openapi/microsoft-purview-relationship-api-openapi.yml
  type: openapi
workflows:
- workflowId: relate-entities
  summary: Create an entity and relate it to an existing entity.
  description: >-
    Creates a source entity, resolves its GUID, creates a typed relationship
    between it and a target entity, and reads the relationship back.
  inputs:
    type: object
    required:
    - authorization
    - entity
    - relationshipTypeName
    - end1TypeName
    - end2TypeName
    - targetEntityGuid
    properties:
      authorization:
        type: string
        description: The OAuth2 bearer token value, e.g. "Bearer eyJ0...".
      entity:
        type: object
        description: The AtlasEntity object to create as the source end of the relationship.
      relationshipTypeName:
        type: string
        description: The relationship type name, e.g. "process_dataset_inputs".
      end1TypeName:
        type: string
        description: The type name of the first (source) entity end.
      end2TypeName:
        type: string
        description: The type name of the second (target) entity end.
      targetEntityGuid:
        type: string
        description: The GUID of the existing target entity to relate to.
  steps:
  - stepId: createEntity
    description: Create or update the source entity for the relationship.
    operationId: createOrUpdateEntity
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authorization
    requestBody:
      contentType: application/json
      payload:
        entity: $inputs.entity
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      guidAssignments: $response.body#/guidAssignments
  - stepId: getEntity
    description: Read the source entity back by its assigned GUID.
    operationId: getEntityByGuid
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authorization
    - name: guid
      in: path
      value: $steps.createEntity.outputs.guidAssignments
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      sourceGuid: $response.body#/entity/guid
  - stepId: createRelationship
    description: >-
      Create a typed relationship connecting the source entity to the target
      entity using their GUIDs.
    operationId: createRelationship
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authorization
    requestBody:
      contentType: application/json
      payload:
        typeName: $inputs.relationshipTypeName
        end1:
          guid: $steps.getEntity.outputs.sourceGuid
          typeName: $inputs.end1TypeName
        end2:
          guid: $inputs.targetEntityGuid
          typeName: $inputs.end2TypeName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      relationshipGuid: $response.body#/guid
  - stepId: getRelationship
    description: Read the relationship back by its GUID to confirm it was created.
    operationId: getRelationship
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authorization
    - name: guid
      in: path
      value: $steps.createRelationship.outputs.relationshipGuid
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      relationshipGuid: $response.body#/relationship/guid
  outputs:
    sourceGuid: $steps.getEntity.outputs.sourceGuid
    relationshipGuid: $steps.createRelationship.outputs.relationshipGuid

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow 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 workflow
curl "https://apis.io/api/v1/arazzo/microsoft-purview-relate-entities-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.