Python
from parallel import Parallel
client = Parallel()
task_group = client.task_group.create(metadata={"key": "value"})
print(task_group.task_group_id)import Parallel from "parallel-web";
const client = new Parallel();
const taskGroup = await client.taskGroup.create({
metadata: {'key': 'value'},
});
console.log(taskGroup.taskgroup_id);HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1/tasks/groups")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"metadata\": {}\n}")
.asString();curl --request POST \
--url https://api.parallel.ai/v1/tasks/groups \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"metadata": {}
}'{
"taskgroup_id": "<string>",
"status": {
"num_task_runs": 123,
"task_run_status_counts": {},
"is_active": true,
"status_message": "<string>",
"modified_at": "2025-04-24T18:56:22.513132Z"
},
"created_at": "2025-04-24T18:56:22.513132Z",
"metadata": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Tasks
Create Task Group
Initiates a TaskGroup to group and track multiple runs.
POST
/
v1
/
tasks
/
groups
Python
from parallel import Parallel
client = Parallel()
task_group = client.task_group.create(metadata={"key": "value"})
print(task_group.task_group_id)import Parallel from "parallel-web";
const client = new Parallel();
const taskGroup = await client.taskGroup.create({
metadata: {'key': 'value'},
});
console.log(taskGroup.taskgroup_id);HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1/tasks/groups")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"metadata\": {}\n}")
.asString();curl --request POST \
--url https://api.parallel.ai/v1/tasks/groups \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"metadata": {}
}'{
"taskgroup_id": "<string>",
"status": {
"num_task_runs": 123,
"task_run_status_counts": {},
"is_active": true,
"status_message": "<string>",
"modified_at": "2025-04-24T18:56:22.513132Z"
},
"created_at": "2025-04-24T18:56:22.513132Z",
"metadata": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Request to create a task group.
User-provided metadata stored with the task group.
Show child attributes
Show child attributes
Response
Successful Response
Response object for a task group, including its status and metadata.
ID of the group.
Status of the group.
Show child attributes
Show child attributes
Timestamp of the creation of the group, as an RFC 3339 string.
Example:
"2025-04-24T18:56:22.513132Z"
User-provided metadata stored with the group.
Show child attributes
Show child attributes