sdk-v2

Upsert Metric Definition

Create or update a metric definition for a table.

put/v2/sdk/semantic-layer/metrics/{table_name}

Request

  • Base URL: https://api.pandas-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.pandas-ai.com/v2/sdk/semantic-layer/metrics/{table_name}
  • Auth: none declared

Path parameters

table_namestring required

Request body

idstring nullable

Existing entry id — when set, updates that row in place

semantic_table_idstring nullable

Owning semantic-table entry id (required to create)

namestring required
expressionstring required
descriptionstring nullable
display_namestring nullable
unitstring nullable
formatstring nullable
filtersobject[] nullable
tagsstring[] nullable
positioninteger nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.