Skip to main content
POST
Plan columns from a description

Authorizations

X-API-Key
string
header
required

Path Parameters

table_id
string<uuid>
required

Body

application/json

What to plan: a description, and the column it changes when it changes one.

instruction
string
required

What the person wants, in their own words.

Required string length: 1 - 2000
column_id
string<uuid> | null

The column to change, when the description changes an existing column rather than adding new ones. Every reading then has exactly one column: this one, as it would be after the change.

Response

Successful Response

A plan: up to three readings of one description, the most likely first. Nothing is saved.

column_id
string<uuid> | null
required

The column it changes, when it changes one.

created_at
string<date-time>
required
id
string<uuid>
required

The plan's id. It can be read back for an hour, so a reading can be saved.

instruction
string
required

The description it was planned from.

readings
ColumnPlanReadingSchema · object[]
required

The readings, the most likely first.

table_id
string<uuid>
required
downstream_credits_per_row
number | null
default:0

On a change, what one row of the columns that read the changed column costs at most, in credits: running the changed column on rows runs them too. 0 for new columns or when nothing paid reads it; None when it cannot be told.

downstream_usual_credits_per_row
number | null

What one row of those reading columns usually costs, in credits; equal to downstream_credits_per_row when each is a flat price. None when nothing says.