Atlas
Wizard

Save entities to org-scoped semantic layer

Persists generated entity YAML files to the organization's semantic layer directory on disk. Validates table names for path traversal, syncs to the internal database if available, and resets the semantic whitelist cache. Requires admin role and an active organization.

POST
/api/v1/wizard/save

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3001/api/v1/wizard/save" \  -H "Content-Type: application/json" \  -d '{    "connectionId": "string",    "entities": [      {        "tableName": "string",        "yaml": "string"      }    ]  }'
{
  "saved": true,
  "orgId": "string",
  "connectionId": "string",
  "entityCount": 0,
  "files": [
    "string"
  ]
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}