---
title: "Swap sprint"
method: POST
path: "/rest/agile/1.0/sprint/{sprintId}/swap"
tags: ["Sprint"]
---

# Swap sprint

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

## Request

- Base URL: `https://your-domain.atlassian.net`
- URL: `https://your-domain.atlassian.net/rest/agile/1.0/sprint/{sprintId}/swap`
- Auth: one of:
  - HTTP basic
  - OAuth 2
    - Authorization code: `https://auth.atlassian.com/authorize`
    - Token URL: `https://auth.atlassian.com/oauth/token` scopes: `write:sprint:jira-software`

Swap the position of the sprint with the second sprint.

## Path parameters

- `sprintId` integer, required

## Request body

- object
  - `sprintToSwapWith` integer

## Response `204`

Returned if the sprint swap was performed successfully

## Other responses

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

## Changes

- **2026-07-13** `4e108d54b990`: 1 info
  - the endpoint scheme security `basicAuth` was added to the API
- **2022-09-25** `ac057c9cf7e5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/atlassian/apis/jira-software-cloud-api/changes/rest/agile/1.0/sprint/:sprintId/swap/post.md)

---

[API](https://skmtc.dev/atlassian/apis/jira-software-cloud-api.md) - [All operations](https://skmtc.dev/atlassian/apis/jira-software-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/atlassian/apis/jira-software-cloud-api/revisions/4e108d54b990?raw)
