Add empty rows to a scenario
Adds a specified number of empty rows to an existing scenario. This is useful for populating a scenario with placeholders for future data entry.
Add empty rows to a scenario
Adds a specified number of empty rows to an existing scenario. This is useful for populating a scenario with placeholders for future data entry.
https://api.futureagi.com/model-hub/develops/{dataset_id}/add_empty_rows/ Click "Try It" to send a request
Authentication
This endpoint requires authentication. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
dataset_id | string | Yes | The UUID of the dataset to which the empty rows will be added. |
Request Body
- num_rows: integer The number of empty rows to add to the dataset. Must be a positive integer.
Example
{
"num_rows": 1
}
Responses
200
Successfully added the specified number of empty rows to the dataset.
- status: boolean
Example:
True - result: string
Example:
Successfully added 1 empty row(s)
400
Bad Request. The provided ‘num_rows’ is not a valid positive integer.
401
Authentication credentials were not provided or are invalid.
404
Not Found. The dataset with the specified ID does not exist.
429
Too Many Requests. The organization has reached its row limit and cannot add more rows.
500
Internal Server Error. An unexpected error occurred while trying to add the rows.
Code Examples
cURL
curl -X POST "https://api.futureagi.com/model-hub/develops/{dataset_id}/add_empty_rows/" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"num_rows": 1}'
Python
import requests
url = "https://api.futureagi.com/model-hub/develops/{dataset_id}/add_empty_rows/"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"num_rows": 1
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
JavaScript
const response = await fetch("https://api.futureagi.com/model-hub/develops/{dataset_id}/add_empty_rows/", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"num_rows": 1
})
});
const data = await response.json();
console.log(data);