---
ai:
  exclude: true
search:
  tags:
    - sprint
    - POST
seo:
  description: >-
    Performs a partial update of a sprint. A… Reference for the POST
    /agile/1.0/sprint/{sprintId} endpoint in the Jira Software Data Center REST
    API Reference.
sidebar:
  label: Partially update a sprint
  badge: POST
title: Partially update a sprint
type: openapi-operation
---
Performs a partial update of a sprint.
A partial update means that fields not present in the request JSON will not be updated.
Notes:
- Sprints that are in a closed state cannot be updated.
- A sprint can be started by updating the state to 'active'. This requires the sprint to be in the 'future' state and have a startDate and endDate set.
- A sprint can be completed by updating the state to 'closed'. This action requires the sprint to be in the 'active' state. This sets the completeDate to the time of the request.
  If the sprint has offending issues (those which are complete, but have incomplete subtasks) it cannot be closed.
  If issues are moved to new sprint user has to have issues edit permissions.
- Other changes to state are not allowed.
- The completeDate field cannot be updated manually.
- Sprint goal can be removed by updating it's value to empty string
- Only Jira administrators can edit dates on sprints that are marked as synced.

`POST /agile/1.0/sprint/{sprintId}`

**Request body** (`application/json`, required)

The updated sprint.

- `activatedDate` (string)
- `autoStartStop` (boolean)
- `completeDate` (string)
- `endDate` (string)
- `goal` (string)
- `id` (integer<int64>)
- `incompleteIssuesDestinationId` (integer<int64>)
- `name` (string)
- `originBoardId` (integer<int64>)
- `self` (string<uri>)
- `startDate` (string)
- `state` (string)
- `synced` (boolean)

Request body example:

```json
{
  "activatedDate": "2015-04-11T15:22:00.000+10:00",
  "autoStartStop": true,
  "completeDate": "2015-04-20T11:04:00.000+10:00",
  "endDate": "2015-04-20T01:22:00.000+10:00",
  "goal": "Goal for the sprint",
  "id": 10001,
  "incompleteIssuesDestinationId": 10001,
  "name": "Sprint 1",
  "originBoardId": 5,
  "self": "http://www.example.com/jira/rest/agile/1.0/sprint/10001",
  "startDate": "2015-04-11T15:22:00.000+10:00",
  "state": "active",
  "synced": true
}
```

**Responses**

- `200` — Returns the updated sprint.
- `400` — Returned if the request is invalid.
- `401` — Returned if the user is not logged in.
- `403` — Returned if the user does not a have valid license.
- `404` — Returned if the sprint does not exist.

Response example, 200:

```json
{
  "activatedDate": "2015-04-11T15:22:00.000+10:00",
  "autoStartStop": true,
  "completeDate": "2015-04-20T11:04:00.000+10:00",
  "endDate": "2015-04-20T01:22:00.000+10:00",
  "goal": "Goal for the sprint",
  "id": 10001,
  "incompleteIssuesDestinationId": 10001,
  "name": "Sprint 1",
  "originBoardId": 5,
  "self": "http://www.example.com/jira/rest/agile/1.0/sprint/10001",
  "startDate": "2015-04-11T15:22:00.000+10:00",
  "state": "active",
  "synced": true
}
```
