PgBeam
PgBeam Docs
SchemaAnnotations

deleteSchemaAnnotation

Delete a schema annotation

Removes a single annotation identified by its natural key. Omit column_name to delete a table-level annotation, and omit schema_name to match the unqualified form.

Usage

const result = await api.schemaannotations.deleteSchemaAnnotation({
  pathParams: { project_id: "prj_xxx" },
  queryParams: { table_name: "..." },
});

Parameters

ParameterTypeRequiredDescription
pathParams.project_idstringYesUnique project identifier (prefixed, e.g. prj_xxx).
queryParams.table_namestringYesRelation (table or view) the annotation describes.
queryParams.schema_namestringNoOptional schema. Omit to match the unqualified form.
queryParams.column_namestringNoOptional column. Omit to delete a table-level annotation.

Response

Promise<void>: no content.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.schemaannotations.deleteSchemaAnnotation({
  pathParams: { project_id: "prj_xxx" },
  queryParams: { table_name: "...", schema_name: "...", column_name: "..." },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
404Resource not found.

On this page