Tasks
Add Runs to Task Group
Changed onInitiates multiple task runs within a TaskGroup.
post/v1/tasks/groups/{taskgroup_id}/runs
Request
- Base URLhttps://api.parallel.ai
- AuthAPI key in header x-api-key
Path parameters
taskgroup_idstring required
Query parameters
refresh_statusboolean
Headers
parallel-betastring nullable
Request body
Example request
{
"default_task_spec": {
"output_schema": {
"json_schema": {
"additionalProperties": false,
"properties": {
"gdp": {
"description": "GDP in USD for the year, formatted like '$3.1 trillion (2023)'",
"type": "string"
}
},
"required": [
"gdp"
],
"type": "object"
}
},
"input_schema": {
"json_schema": {
"additionalProperties": false,
"properties": {
"gdp": {
"description": "GDP in USD for the year, formatted like '$3.1 trillion (2023)'",
"type": "string"
}
},
"required": [
"gdp"
],
"type": "object"
}
}
},
"inputs": [
{
"processor": "base",
"source_policy": {
"include_domains": [
"wikipedia.org",
"docs.python.org/3",
".edu"
],
"exclude_domains": [
"reddit.com",
"youtube.com/shorts",
".ai"
],
"after_date": "2024-01-01"
},
"advanced_settings": {
"location": "us"
},
"task_spec": {
"output_schema": {
"json_schema": {
"additionalProperties": false,
"properties": {
"gdp": {
"description": "GDP in USD for the year, formatted like '$3.1 trillion (2023)'",
"type": "string"
}
},
"required": [
"gdp"
],
"type": "object"
}
},
"input_schema": {
"json_schema": {
"additionalProperties": false,
"properties": {
"gdp": {
"description": "GDP in USD for the year, formatted like '$3.1 trillion (2023)'",
"type": "string"
}
},
"required": [
"gdp"
],
"type": "object"
}
}
}
}
]
}Response
Successful Response
Example response
{
"status": {
"modified_at": "2025-04-24T18:56:22.513132Z"
}
}Changes
- info
added the new optional request property
////
- info
- info
added the new optional request property
//
- info