Skip to main content
POST
/
api
/
metastore
/
classify
/
{catalog}
/
{schema}
/
{table}
/
accept
Accept and persist classification
curl --request POST \
  --url https://api.example.com/api/metastore/classify/{catalog}/{schema}/{table}/accept \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "table": {
    "accepted_classifications": [
      "<string>"
    ],
    "accepted_tags": [
      "<string>"
    ],
    "description": "<string>",
    "accepted_glossary_terms": [
      "<string>"
    ],
    "new_glossary_terms": [
      {
        "term_name": "<string>",
        "term_description": "",
        "is_existing": false,
        "term_urn": "<string>"
      }
    ]
  },
  "columns": [
    {
      "column_name": "<string>",
      "accepted_classifications": [
        "<string>"
      ],
      "accepted_tags": [
        "<string>"
      ],
      "description": "<string>",
      "accepted_glossary_terms": [
        "<string>"
      ],
      "new_glossary_terms": [
        {
          "term_name": "<string>",
          "term_description": "",
          "is_existing": false,
          "term_urn": "<string>"
        }
      ]
    }
  ]
}
'
{
  "success": true,
  "table_tags_applied": [
    "<string>"
  ],
  "column_tags_applied": {},
  "glossary_terms_linked": 0,
  "glossary_terms_created": 0,
  "descriptions_updated": 0
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

catalog
string
required

Catalog name.

schema
string
required

Schema name.

table
string
required

Table name.

Body

application/json

Request body for accepting (persisting) a classification result.

table
AcceptTableClassification · object
required

User-edited table classification to persist.

columns
AcceptColumnClassification · object[]

Response

Successful Response

Response after persisting classification to DataHub.

success
boolean
default:true
table_tags_applied
string[]
column_tags_applied
Column Tags Applied · object
glossary_terms_linked
integer
default:0
glossary_terms_created
integer
default:0
descriptions_updated
integer
default:0