Skip to content

Rows

Each row in a sheet represents a single video. Rows contain cells — one per column — that hold the content for each content type.

{
"id": 500,
"position": 1,
"additional_attributes": {},
"created_at_ts": 1709294400000,
"updated_at_ts": 1709380800000,
"spreadsheet_cells": [],
"execution_cost": null
}

The execution_cost field is only present when with_execution_cost=true is passed on the parent sheet request.


Returns all rows in a sheet.

GET /v1/autocontentengine/{id}/rows?agent_id={agent_id}
ParameterTypeDescription
idintegerThe sheet ID.
[
{
"id": 500,
"position": 1,
"additional_attributes": {},
"created_at_ts": 1709294400000,
"updated_at_ts": 1709380800000,
"spreadsheet_cells": []
}
]
Terminal window
curl "https://api.gen.pro/v1/autocontentengine/101/rows?agent_id=42" \
-H "X-API-Key: your-api-key"

Adds a new row to the sheet. A cell is automatically created for each existing column.

POST /v1/autocontentengine/{id}/rows?agent_id={agent_id}
FieldTypeRequiredDescription
spreadsheet_row.positionintegerNoInsert at a specific position. Appended to the end if omitted.

Returns the created row with its cells.

Terminal window
curl -X POST "https://api.gen.pro/v1/autocontentengine/101/rows?agent_id=42" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"spreadsheet_row": {"position": 1}}'

Returns a single row with its cells.

GET /v1/autocontentengine/{id}/rows/{row_id}?agent_id={agent_id}
ParameterTypeDescription
idintegerThe sheet ID.
row_idintegerThe row ID.

Returns the row object with spreadsheet_cells.

Terminal window
curl "https://api.gen.pro/v1/autocontentengine/101/rows/500?agent_id=42" \
-H "X-API-Key: your-api-key"

Creates a copy of a row, including all cell values.

POST /v1/autocontentengine/{id}/rows/{row_id}/duplicate?agent_id={agent_id}
ParameterTypeDescription
idintegerThe sheet ID.
row_idintegerThe row ID to duplicate.

Returns the newly created row.

Terminal window
curl -X POST "https://api.gen.pro/v1/autocontentengine/101/rows/500/duplicate?agent_id=42" \
-H "X-API-Key: your-api-key"

Reorders rows within a sheet.

PUT /v1/autocontentengine/{id}/rows/update_positions?agent_id={agent_id}
FieldTypeRequiredDescription
rowsarrayYesArray of {id, position} objects.
Terminal window
curl -X PUT "https://api.gen.pro/v1/autocontentengine/101/rows/update_positions?agent_id=42" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"rows": [{"id": 500, "position": 2}, {"id": 501, "position": 1}]}'

Returns the updated rows.


Updates multiple rows in a single request.

PUT /v1/autocontentengine/{id}/rows/mass_update?agent_id={agent_id}

Accepts an array of row objects with the fields to update.

Terminal window
curl -X PUT "https://api.gen.pro/v1/autocontentengine/101/rows/mass_update?agent_id=42" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"rows": [{"id": 500, "additional_attributes": {"label": "hero"}}, {"id": 501, "additional_attributes": {"label": "intro"}}]}'
StatusError codeDescription
404not_foundSheet or row not found.
422validation_errorInvalid row data.