Guidance on Using Curl for Querying a Dataset

Original Slack Thread

#getting-started can someone help me with the curl format for the this query >> query dataset {dataset(urn:"urn:li:dataset:(urn:li:dataPlatform:hive,logging_events,PROD)") {name,urn,lastIngested}}

Something like this will do (<Dataset | DataHub docs>) :

--header 'Authorization: Bearer &lt;my-access-token&gt;' \  
--header 'Content-Type: application/json' \  
--data-raw '{ "query": "query { dataset(urn: \"urn:li:dataset:(urn:li:dataPlatform:hive,logging_events,PROD)\") { name urn lastIngested } }", "variables":{}}'```