Skip to content

Columns

Columns define the content types in a sheet. Each column represents a type of content — script, voiceover, video clip, music, etc. When you add a column, a new cell is created in every existing row.

{
"id": 200,
"title": "Script",
"temp_title": null,
"type": "text",
"column_role": "script",
"description": "The video script for this scene",
"position": 1,
"additional_attributes": {},
"created_at_ts": 1709294400000,
"updated_at_ts": 1709380800000
}

Returns all columns in a sheet.

GET /v1/autocontentengine/{id}/columns?agent_id={agent_id}
ParameterTypeDescription
idintegerThe sheet ID.
[
{
"id": 200,
"title": "Script",
"temp_title": null,
"type": "text",
"column_role": "script",
"description": "The video script for this scene",
"position": 1,
"additional_attributes": {},
"created_at_ts": 1709294400000,
"updated_at_ts": 1709380800000
}
]
Terminal window
curl "https://api.gen.pro/v1/autocontentengine/101/columns?agent_id=42" \
-H "X-API-Key: your-api-key"

Adds a new column to the sheet. A new cell is automatically created in every existing row.

POST /v1/autocontentengine/{id}/columns?agent_id={agent_id}
FieldTypeRequiredDescription
spreadsheet_column.titlestringYesThe column name (e.g., "Voiceover").
spreadsheet_column.typestringYesThe content type.
spreadsheet_column.positionintegerNoInsert at a specific position. Appended to the end if omitted.

Returns the created column.

Terminal window
curl -X POST "https://api.gen.pro/v1/autocontentengine/101/columns?agent_id=42" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"spreadsheet_column": {"title": "Voiceover", "type": "audio"}}'

Creates a copy of a column and all its cell values.

POST /v1/autocontentengine/{id}/columns/{col_id}/duplicate?agent_id={agent_id}
ParameterTypeDescription
idintegerThe sheet ID.
col_idintegerThe column ID to duplicate.

Returns the newly created column.

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

Reorders columns within a sheet.

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

Returns the updated columns.


Updates multiple columns in a single request.

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

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

Terminal window
curl -X PUT "https://api.gen.pro/v1/autocontentengine/101/columns/mass_update?agent_id=42" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"columns": [{"id": 200, "title": "Main Script"}, {"id": 201, "description": "Background music track"}]}'
StatusError codeDescription
404not_foundSheet or column not found.
422validation_errorInvalid column data or missing required fields.