Generate semantic model
Submit a task to automatically generate semantic models using AI.
Required roles: nx1_semantic_modeller or nx1_semantic_admin
The domain_urn in the request specifies which DataHub domain to scan. The AI will only analyze datasets within that domain.
Use GET /semantic-models/tasks/ to check progress.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
Body
Request to generate semantic models using AI.
Domain name. For example, Finance. Either domain_name or domain_urn is required.
DataHub domain URN. For example, urn:li:domain:Finance. Either domain_name or domain_urn is required.
Optional description of what kind of models to generate.
Specific tables to include. Default: All tables in a domain
Tables to exclude from generation.
Target Trino catalog for views.
Target schema. Default: domain name
Automatically submit generated models for review.
Response
Generation task submitted
Response for a generation task submission.
Internal task ID.
Celery task ID. Empty if synchronous.
Number of models generated if completed.
IDs of generated models if completed.