---
title: "Rollback job"
method: POST
path: "/{env_id}/{flow_id}/{tenant}/jobs/rollback"
---

# Rollback job

`POST /{env_id}/{flow_id}/{tenant}/jobs/rollback`

## Request

- Base URL: `https://api.hotglue.com`
- URL: `https://api.hotglue.com/{env_id}/{flow_id}/{tenant}/jobs/rollback`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/hotglue/apis/hotglue-api/docs/:env_id/:flow_id/:tenant/jobs/rollback/post.ts> (a function with typed inputs; its response is checked against the schema)

Reset the the configuration to the state before a given job ran. This affects the `source state` (bookmarks) and the `snapshots`.

## Path parameters

- `env_id` string, required
- `flow_id` string, required
- `tenant` string, required

## Request body

- object
  - `job_root` string, required: S3 root for job
  - `tap` string, required: ID of tap
  - `job_id` string, required: ID of job

## Response `200`

200

- object

## Other responses

- `400`: 400

---

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