---
title: "Create a sprint"
method: POST
path: "/api/workspaces/{workspaceId}/projects/{projectId}/sprints"
tags: ["Sprints"]
---

# Create a sprint

`POST /api/workspaces/{workspaceId}/projects/{projectId}/sprints`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/projects/{projectId}/sprints`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required
- `projectId` string, required

## Request body

- object
  - `name` string, required
  - `goal` string
  - `startDate` string, date-time
  - `endDate` string, date-time

## Response `201`

Sprint created

- object
  - `success` boolean, required
  - `data` object, required
    - `id` string, cuid, required
    - `name` string, required
    - `goal` string, nullable, required
    - `status` 'PLANNING' | 'ACTIVE' | 'COMPLETED', required
    - `startDate` string, date-time, nullable, required
    - `endDate` string, date-time, nullable, required
    - `issueCount` integer, required
    - `completedIssueCount` integer, required
    - `totalPoints` integer, required
    - `completedPoints` integer, required

## Other responses

- `400`: Validation error

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
