POST
/
api
/
ai
/
table
/
{ai_table_id}
/
update
curl --request POST \
  --url https://cite.petal.org/api/ai/table/{ai_table_id}/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "document_ids": [
    123
  ],
  "meta": {},
  "visibility": "shared"
}'
{
  "created_at": "<string>",
  "document_ids": [
    123
  ],
  "id": 123,
  "meta": {},
  "organization_id": 123,
  "user_id": 123,
  "visibility": "shared"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

ai_table_id
integer
required

The unique ID of the AI Table

Body

application/json
document_ids
integer[]

List of Document IDs in this Table. If an ID is removed, all its associated cells will be automatically deleted

meta
object

Metadata, for internal use

visibility
enum<string>
default:
shared

Whether this Table can only be seen by its creator, or by the whole Workspace

Available options:
shared,
private

Response

200
application/json
OK
created_at
string
required

Time of Table creation, in UTC

id
integer
required

Unique ID of Table

meta
object
required

Metadata, for internal use

organization_id
integer
required

Unique ID of Organization the Table belongs to

user_id
integer
required

Unique ID of user the Table belongs to

visibility
enum<string>
default:
shared
required

Whether this Table can only be seen by its creator, or by the whole Workspace

Available options:
shared,
private
document_ids
integer[]

List of Document IDs in this Table