Hello! I'm trying to get more familiar with the Da...
# troubleshoot
a
Hello! I'm trying to get more familiar with the DataHub API, and want to be able to update metadata for a given entity--the issue is, I'm having trouble figuring out the pattern for the URN. The UI gives me something like
urn:li:container:<alphanumeric-string>
, but from the docs it seems more human-readable (and programmatically guessable) versions of URNs exist. How does one put together the latter type of URN for, say, a BigQuery dataset? If this belongs in a difference channel, I'll happily cross-post!
🩺 1
a
Hi @acceptable-football-40437, this is a good callout for our docs! you can see a decent example here:
A good exercise would be exploring already ingested URNs with graphiql https://datahubproject.io/docs/metadata-service/#exploring-the-graphql-api
a
ty
m
Bigquery Datasets happen to be containers in DataHub speak and container urns use a guid for their id field instead of the more human-readable versions that say a BigQuery table would use. If you want to update metadata for a container, you’ll first have to query for the entity id using the search api (I don’t know the exact query OTOH) and then update it.