---
title: "Undo an import: removes what it created unless used since (listed as kept), including history and the archived services and former staff it added, restores merged values and updated products, and removes imported balances that are still unused"
method: POST
path: "/api/v1/imports/{id}/rollback"
---

# Undo an import: removes what it created unless used since (listed as kept), including history and the archived services and former staff it added, restores merged values and updated products, and removes imported balances that are still unused

`POST /api/v1/imports/{id}/rollback`

## Request

- Base URL: `http://127.0.0.1:4310`
- URL: `http://127.0.0.1:4310/api/v1/imports/{id}/rollback`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sfb_session`

## Path parameters

- `id` string, required

## Request body

- object
  - `confirm` boolean, required

## Response `200`

OK

- object

## Other responses

- `400`: Validation error
- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict or invalid state

---

[API](https://skmtc.dev/scalingfirm/apis/tsf-booking-api.md) · [All operations](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/revisions/81704199cd37?raw)
