POST
/api/public/v1/sprintsCreate a sprint
Create a new sprint within a project.
Request Body
| Property | Type | Description |
|---|---|---|
projectId | string | Owning project. |
name | string | Sprint name. |
goal | string | Sprint goal. |
status | string | Initial status. |
startDate | string | ISO 8601 start date. |
endDate | string | ISO 8601 end date. |
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/sprints" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"projectId": "proj_1",
"name": "Sprint 1",
"startDate": "2026-06-01",
"endDate": "2026-06-14"
}'200Example response
json
{
"message": "Sprint created successfully!",
"content": {
"sprint": {
"id": "spr_1"
}
}
}