Add Columns to Scenario
Adds new AI-generated columns to a scenario's dataset. Returns 202 Accepted and runs asynchronously.
https://api.futureagi.com/simulate/scenarios/{scenario_id}/add-columns/ Authentication
Path parameters
The scenario ID. The scenario must have an associated dataset with at least one row.
Request body
Column definitions to add. Min 1, max 10 per request. Column names must be unique within the request and must not already exist in the dataset.
Each column object:
Column name. Max 50 characters. Cannot be blank or whitespace-only. Must be unique within the request and not already present in the dataset.
Column data type. One of: text, boolean, integer, float, json, array, image, images, datetime, audio, document, others, persona.
Column description. Max 200 characters. Guides the AI when generating values.
Response
202 AcceptedErrors
Invalid request or dataset state. The response includes an error message and (for field errors) a details object.
{
"columns": "Column 'expected_outcome' already exists in the dataset."
}Or:
{
"columns": "Duplicate column name(s): difficulty_level"
}Common causes:
- No associated dataset
- Dataset has no rows
- Column name already exists in the dataset
- Duplicate column names within the request
- More than 10 columns submitted
- Invalid
data_typevalue
Invalid or missing API credentials.
Scenario not found or does not belong to your organization.
{"error": "Scenario not found."} Unexpected server error.
{"error": "Failed to add columns: <message>"}