Alter Metadata
POST
/api/v1/codegen/alter-metadata
const url = 'https://example.com/api/v1/codegen/alter-metadata';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"catalog_name":"example","schema_name":"example","table_name":"example","change":{"table_description":"example","table_tags":{},"columns":[{"column":"example","description":"example","column_tags":{}}]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/codegen/alter-metadata \ --header 'Content-Type: application/json' \ --data '{ "catalog_name": "example", "schema_name": "example", "table_name": "example", "change": { "table_description": "example", "table_tags": {}, "columns": [ { "column": "example", "description": "example", "column_tags": {} } ] } }'Generate SQL for Glossary/Metadata updates (Description, Tags). No structural schema changes allowed here.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
GlossaryUpdateInput
Input for state-based metadata/glossary updates.
object
catalog_name
required
Catalog Name
string
schema_name
required
Schema Name
string
table_name
required
Table Name
string
change
required
GlossaryChange
The content of a glossary/metadata update.
object
Examplegenerated
{ "catalog_name": "example", "schema_name": "example", "table_name": "example", "change": { "table_description": "example", "table_tags": {}, "columns": [ { "column": "example", "description": "example", "column_tags": {} } ] }}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CodegenResponse
Standard response for all codegen endpoints.
object
status
Status
string
artifacts
required
errors
Errors
Array<string>
Example
{ "status": "success", "artifacts": [ { "encode_artifacts": false } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}