---
title: "Complete the active sprint"
method: POST
path: "/sprints/{id}/complete"
tags: ["sprints"]
---

# Complete the active sprint

`POST /sprints/{id}/complete`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/sprints/{id}/complete`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Transitions ACTIVE → COMPLETED. Optionally moves unfinished tasks to another sprint.

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Request body

- object
  - `moveToSprintId` string, uuid, nullable: Move incomplete tasks to this sprint. Omit to leave them in the backlog.

## Response `200`

Completed sprint with task move summary

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `402`: Plan gate - feature not available on current plan
- `403`: Forbidden - insufficient role

---

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