Přejít na hlavní obsah
GET
/
v1
/
schemas
/
{schema_id}
const schema = await client.schemas.get("schema_abc123");

console.log(schema.name);
for (const col of schema.columns) {
  console.log(`${col.key}: ${col.type}`);
}
{
  "id": "schema_abc123",
  "name": "Electronics Catalog",
  "description": "Schema for consumer electronics",
  "is_default": false,
  "columns": [
    { "key": "product_name", "label": "Product Name", "type": "text", "required": true },
    { "key": "price", "label": "Price", "type": "number" }
  ],
  "created_at": "2025-03-01T10:00:00.000Z",
  "updated_at": "2025-03-01T10:00:00.000Z"
}

Parametry cesty

schema_id
string
povinné
Jedinečný identifikátor schématu.

Odpověď

id
string
Jedinečný identifikátor schématu.
name
string
Název schématu.
description
string | null
Popis schématu.
is_default
boolean
Zda je toto výchozí schéma.
columns
array
created_at
string
Časové razítko ISO 8601.
updated_at
string
Časové razítko ISO 8601.
const schema = await client.schemas.get("schema_abc123");

console.log(schema.name);
for (const col of schema.columns) {
  console.log(`${col.key}: ${col.type}`);
}
{
  "id": "schema_abc123",
  "name": "Electronics Catalog",
  "description": "Schema for consumer electronics",
  "is_default": false,
  "columns": [
    { "key": "product_name", "label": "Product Name", "type": "text", "required": true },
    { "key": "price", "label": "Price", "type": "number" }
  ],
  "created_at": "2025-03-01T10:00:00.000Z",
  "updated_at": "2025-03-01T10:00:00.000Z"
}