---
title: "Remap jobs after git history rewrite"
method: POST
path: "/api/remap"
tags: ["jobs"]
---

# Remap jobs after git history rewrite

`POST /api/remap`

## Request body

- RemapRequest
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `mappings` RemapMapping[], nullable, required
    - `author` string, required
    - `new_sha` string, required
    - `old_sha` string, required
    - `patch_id` string, required
    - `subject` string, required
    - `timestamp` string, required
  - `repo_path` string, required

## Response `200`

OK

- RemapResult
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `remapped` integer, required
  - `skipped` integer, required

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/kenn-io/apis/roborev.md) · [All operations](https://skmtc.dev/kenn-io/apis/roborev/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kenn-io/roborev/revisions/0dfdca81e88d/schema)
