Schémata
Získat schéma
Načtení konkrétního schématu s úplnými definicemi sloupců.
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}`);
}
schema = client.schemas.get("schema_abc123")
print(schema["name"])
for col in schema["columns"]:
print(f"{col['key']}: {col['type']}")
curl -X GET "https://hub.banditshq.com/api/v1/schemas/schema_abc123" \
-H "Authorization: Bearer lasso_..."
{
"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
string
povinné
Jedinečný identifikátor schématu.
Odpověď
string
Jedinečný identifikátor schématu.
string
Název schématu.
string | null
Popis schématu.
boolean
Zda je toto výchozí schéma.
array
string
Časové razítko ISO 8601.
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}`);
}
schema = client.schemas.get("schema_abc123")
print(schema["name"])
for col in schema["columns"]:
print(f"{col['key']}: {col['type']}")
curl -X GET "https://hub.banditshq.com/api/v1/schemas/schema_abc123" \
-H "Authorization: Bearer lasso_..."
{
"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"
}
⌘I
const schema = await client.schemas.get("schema_abc123");
console.log(schema.name);
for (const col of schema.columns) {
console.log(`${col.key}: ${col.type}`);
}
schema = client.schemas.get("schema_abc123")
print(schema["name"])
for col in schema["columns"]:
print(f"{col['key']}: {col['type']}")
curl -X GET "https://hub.banditshq.com/api/v1/schemas/schema_abc123" \
-H "Authorization: Bearer lasso_..."
{
"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"
}

