Add AI Rows to Scenario
Generates and adds new rows to a scenario's dataset using AI. Returns 202 Accepted and runs asynchronously.
POST
https://api.futureagi.com/simulate/scenarios/{scenario_id}/add-rows/ Authentication
Path parameters
scenario_id
The scenario ID. The scenario must have an associated dataset.
Request body
num_rows
Number of rows to generate. Range: 10–20000.
description
Guidance for AI row generation. If omitted, existing rows and columns are used as context.
Response
202 Accepted message
Confirmation that row generation has started.
scenario_id
UUID of the scenario.
dataset_id
UUID of the underlying dataset.
num_rows
Number of rows being generated.
Errors
400
Invalid request or scenario state. The response includes an error message.
{"error": "Scenario does not have an associated dataset."}Or for validation failures:
{
"error": "…",
"details": {
"num_rows": ["Number of rows must be at least 10."]
}
}Common causes: no associated dataset, num_rows below 10 or above 20000.
401
Invalid or missing API credentials.
404
Scenario not found or does not belong to your organization.
{"error": "Scenario not found."} 500
Unexpected server error.
{"error": "Failed to add rows: <message>"}