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: '{"table_name":"example","table_comment":"example","columns":[{"name":"example","comment":"example"}],"requested_by":"example"}'};
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 '{ "table_name": "example", "table_comment": "example", "columns": [ { "name": "example", "comment": "example" } ], "requested_by": "example" }'Generate SQL for metadata/comment updates.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
MetadataAlterInput
Input model for metadata/comment alterations.
object
Examplegenerated
{ "table_name": "example", "table_comment": "example", "columns": [ { "name": "example", "comment": "example" } ], "requested_by": "example"}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": [ { "is_base64": 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" } ]}