How to Populate Dataset Usage Stats via API?

Original Slack Thread

Hello, Is there a way to popule dataset usage stats via API?

You can use this route to ingest the usage metadata.attachment

in “aspect” key, just replace the values with the following schema:

You can see this swagger documentation in your datahub frontend. Just type the following route:

http://localhost:9002/openapi/swagger-ui/index.html#/Entities/postEntities_1

Niceee!! thank you