Creates an execution session for specified testcases.
An execution represents a structured, immutable record of test activity.
Executions must belong to either:
TEST_RUNRELEASEExecution history is preserved and cannot be overwritten.
Use this endpoint when you need to:
curl -X POST https://api.hawzu.com/api/v1/workspace/{workspaceId}/project/{projectId}/executions/create_execution \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{"execution_type": "TEST_RUN", "testcases": ["tc_101", "tc_102"], "release_id": null, "name": "CI regression run", "description": "This is a regression run for the CI pipeline"}'This endpoint accepts the following path parameters:
| Parameter | Required | Description |
|---|---|---|
workspaceId | ✅ Yes | The ID of the workspace to create the execution for |
projectId | ✅ Yes | The ID of the project to create the execution for |
| Header | Required | Description |
|---|---|---|
Authorization | ✅ Yes | Bearer token in the format Bearer <API_TOKEN> |
{
"execution_type": "TEST_RUN",
"testcases": ["tc_101", "tc_102"],
"release_id": null,
"name": "CI regression run",
"description": "This is a regression run for the CI pipeline"
}{
"data": {
"id": "exec_101",
"name": "CI regression run",
"status": "IN_PROGRESS",
"created_at": "2025-02-01T00:00:00Z"
}
}