# Writing to Action Table with OpenAPI

#### Prerequisites

* table\_id for an existing action table
* PAT with scope action\_tables&#x20;

#### Discover the endpoint via OpenAPI&#x20;

In API reference document, navigate to Generative Table (v2) →  [Add rows to a table](https://jamaibase.readme.io/reference/add_rows_api_v2_gen_tables__table_type__rows_add_post)<br>

<figure><img src="/files/KBtAaSLJH5UW2R5cAUJb" alt=""><figcaption></figcaption></figure>

#### Create a row (POST)

As shown in Step 2, JamAI Base supports multiple data types, including primitives (integer, float, boolean, text) and file-backed types (image, audio, document). For file-backed types, there’s one extra step: upload the file first, then reference the returned file URI in your create-row request.<br>

<figure><img src="/files/Xnxa3G4zHxJ0H1sxUYTD" alt="" width="375"><figcaption></figcaption></figure>

Below we’ll demonstrate 2 cases:

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><a href="/pages/k1EPoml2rtf0U3tj50LN">Primitives (integer, float, boolean, text)</a></td><td><a href="/files/bBbVrwsyCglvz3phndKL">/files/bBbVrwsyCglvz3phndKL</a></td></tr><tr><td><a href="/pages/hiBLXhnrJMmrh41s3k4q">Multimodel: Image / Audio / Document</a></td><td><a href="/files/Rt83dsgmwKSyEgD6H6Ab">/files/Rt83dsgmwKSyEgD6H6Ab</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jamaibase.com/developer-reference/openapi-documentation/writing-to-action-table-with-openapi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
