---
ai:
  exclude: true
search:
  tags:
    - sprint
    - POST
seo:
  description: >-
    Swap the position of the sprint with… Reference for the POST
    /agile/1.0/sprint/{sprintId}/swap endpoint in the Jira Software Data Center
    REST API Reference.
sidebar:
  label: Swap the position of two sprints
  badge: POST
title: Swap the position of two sprints
type: openapi-operation
---
Swap the position of the sprint with the second sprint.

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

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

The sprint to swap with.

- `sprintToSwapWith` (integer<int64>)
- `swap` (integer<int64>)

Request body example:

```json
{
  "sprintToSwapWith": 3,
  "swap": 0
}
```

**Responses**

- `204` — Returned if the sprint swap was performed successfully.
- `401` — Returned if the user is not logged in.
- `403` — Returned if the user does not a have valid license or does not have permission to at least one sprint.
- `404` — Returned if at least one sprint does not exist or user does not have permission to view to at least one sprint.
