publishArtifact
Publish an upload-ready TenantArtifact with a valid dataSchema as a
TenantConnectorTap (EDR-0021 glue).
Creates the workspace’s Artifact-connector TenantConnector if missing, then
creates a TenantConnectorTap whose outputSchema is a snapshot copy of
artifact.dataSchema. The artifact’s schema and the tap’s outputSchema
evolve independently after publish.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Workspace slug. Overrides subdomain-based workspace resolution when provided.
"acme"
Optional request correlation ID echoed back in the response.
"550e8400-e29b-41d4-a716-446655440000"
Body
Input for publishing a TenantArtifact as a TenantConnectorTap. The artifact
must be READY with a non-null dataSchema. Publish creates a fresh
TenantConnectorTap whose outputSchema is a snapshot copy of
artifact.dataSchema at publish time; the two diverge thereafter.
Optional name overrides the auto-derived {slug(filename)}-{first 8 hex of artifactId}
default; on a unique-index collision the request returns NAME_ALREADY_EXISTS.
tableName becomes the dataset/table identifier in the data catalog and is
used by the query layer when querying the published data. It is also stored
as the contractId and name on the silver ConnectorTapContract.