DataHub · Arazzo Workflow

DataHub Tag a Dataset

Version 1.0.0

Confirm a dataset exists, then write its globalTags aspect to apply governance tags.

1 workflow 1 source API 1 provider
View Spec View on GitHub Data CatalogData DiscoveryData GovernanceData LineageMetadataArazzoWorkflows

Provider

datahub

Workflows

tag-dataset
Verify a dataset entity and apply a globalTags aspect to it.
Reads the latest aspects for a dataset URN to confirm it exists, then writes the globalTags aspect to associate one or more tags with the dataset.
2 steps inputs: entityUrn, globalTags, token outputs: taggedUrn
1
confirmDataset
Retrieve the latest aspects for the dataset URN to confirm the entity exists before applying tags.
2
applyTags
Upsert the globalTags aspect for the confirmed dataset URN to associate the supplied tags with the dataset.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: DataHub Tag a Dataset
  summary: Confirm a dataset exists, then write its globalTags aspect to apply governance tags.
  description: >-
    A common cataloging task in DataHub: applying tags to a dataset for
    discovery and governance. The workflow first reads the latest aspects for the
    target dataset URN to confirm the entity exists, and then upserts the
    globalTags aspect carrying the desired tag associations. Every step spells out
    its request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: entitiesApi
  url: ../openapi/datahub-entities-api-openapi.yml
  type: openapi
workflows:
- workflowId: tag-dataset
  summary: Verify a dataset entity and apply a globalTags aspect to it.
  description: >-
    Reads the latest aspects for a dataset URN to confirm it exists, then writes
    the globalTags aspect to associate one or more tags with the dataset.
  inputs:
    type: object
    required:
    - token
    - entityUrn
    - globalTags
    properties:
      token:
        type: string
        description: DataHub personal access token passed as a Bearer token.
      entityUrn:
        type: string
        description: The dataset URN to tag.
      globalTags:
        type: object
        description: The globalTags aspect value containing the tag associations to apply.
  steps:
  - stepId: confirmDataset
    description: >-
      Retrieve the latest aspects for the dataset URN to confirm the entity
      exists before applying tags.
    operationId: getEntityLatestAspects
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    - name: urns
      in: query
      value: $inputs.entityUrn
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      confirmedUrn: $response.body#/0/entityUrn
    onSuccess:
    - name: datasetExists
      type: goto
      stepId: applyTags
      criteria:
      - context: $response.body
        condition: $.length > 0
        type: jsonpath
  - stepId: applyTags
    description: >-
      Upsert the globalTags aspect for the confirmed dataset URN to associate
      the supplied tags with the dataset.
    operationId: upsertEntities
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    requestBody:
      contentType: application/json
      payload:
      - entityUrn: $steps.confirmDataset.outputs.confirmedUrn
        entityType: dataset
        aspectName: globalTags
        aspect: $inputs.globalTags
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      taggedUrn: $response.body#/0/entityUrn
  outputs:
    taggedUrn: $steps.applyTags.outputs.taggedUrn

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/datahub-tag-dataset-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.