i have api datahub like this curl --location --request POST…
- User
i have api datahub like this
curl --location --request POST 'http://localhost:8080/entities?action=ingest'
-H 'accept: application/json'
-H 'Authorization: Bearer ...'
-H 'Content-Type: application/json'
-d '{ "entity": { "value": { "com.linkedin.metadata.snapshot.DatasetSnapshot": { "urn": "urn:li:dataset:(urn:li:dataPlatform:bigquery,data-dev-270120.dbt_test.testing_uhuy,PROD)", "aspects": [ { "com.linkedin.common.BrowsePaths": { "paths": ["/prod/bigquery/data-dev-270120/dbt_test"] } }, { "com.linkedin.schema.SchemaMetadata": { "schemaName": "testing_uhuy", "fields": [ { "fieldPath": "system", "type": {"type": {"com.linkedin.schema.StringType": {}}} }, { "fieldPath": "job_id", "type": {"type": {"com.linkedin.schema.NumberType": {}}} }code] } } ] } } } }' - Assistant
This
curlcommand is designed to post (ingest) data to a service running onlocalhost(your machine) on port8080. The endpoint it hits is/entitieswith a query parameteraction=ingest. It sets theAcceptheader to acceptapplication/json, meaning you expect the response in JSON format. It includes anAuthorizationheader with a Bearer token for authentication (you would replace the ellipsis with your actual token), and aContent-Typeheader indicating the body of the request is JSON.The body of the request () is a JSON payload that represents metadata for a dataset entity. This payload contains the following information:
- User
- Assistant
- User
give me an example “com.linkedin.schema.PlatformSchema”: { /* Schema details */ }
- Assistant
- User
- Assistant
The error message suggests that the type
com.linkedin.schema.BigQuerySchemais not part of the supported union of types for theplatformSchemafield within thecom.linkedin.schema.SchemaMetadata.From the error message, we can see that the API expects
platformSchemato be one of the union types listed, such as , , , , , and a few others.