Přejít na hlavní obsah
POST
/
v1
/
tables
/
{table_id}
/
enhance
/
bulk
const job = await client.enhance.bulk("tbl_abc123", {
  row_id: "row_xyz789",
  columns: [
    { key: "description", prompt: "Write a product description." },
    { key: "seo_title", prompt: "Generate an SEO-optimized title.", web_search: true },
    { key: "description_de", prompt: "Translate the description to German." },
  ],
});
{
  "id": "enhance_abc123",
  "status": "queued",
  "estimated_credits": 1.5,
  "rows_queued": 1
}

Parametry cesty

table_id
string
povinné
Jedinečný identifikátor tabulky.

Tělo požadavku

row_id
string
povinné
ID řádku k obohacení.
columns
array
povinné
Pole konfigurací obohacení sloupců. Nesmí být prázdné.

Odpověď

id
string
Identifikátor úlohy obohacení.
status
string
Vždy queued.
estimated_credits
number
Odhadovaná cena v kreditech.
rows_queued
integer
Vždy 1.
const job = await client.enhance.bulk("tbl_abc123", {
  row_id: "row_xyz789",
  columns: [
    { key: "description", prompt: "Write a product description." },
    { key: "seo_title", prompt: "Generate an SEO-optimized title.", web_search: true },
    { key: "description_de", prompt: "Translate the description to German." },
  ],
});
{
  "id": "enhance_abc123",
  "status": "queued",
  "estimated_credits": 1.5,
  "rows_queued": 1
}