# Resume a switch-in's stopped replay

Source: https://amanucci.com/nl/docs/developers/api/migrations/resumeMigrationReplay

## POST /v1/firms/{firmId}/migrations/{migrationId}/resume

Resume a switch-in's stopped replay

Resume a signed migration's stopped replay — ONE signed act, `post_entry`, as the signature is: a firm accountant (a staffer meets 403 `authority-required`) with a step-up under fifteen minutes old (403 `step-up-required`), and on a client matched at staging, or created by the signature and its owner seated since, also that client's signing (its `ledger.manage` grant), read on the locked row; a firm the client no longer engages does not see the migration (404). The recorded `replayFailure` is cleared, the resumer and her presence recorded on the migration, and the replay enqueued again, landing what the stopped one did not (every step is idempotent); every period close and migrated return it records from then on names the resumer. A replay that has not stopped refuses (409 `migration_not_stopped`), as does a migration that is not signed (409 `migration_not_staged`) and one whose replay is still queued or running (409 `replay_pending`).

Operation ID: `resumeMigrationReplay`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "firmId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "migrationId",
    "in": "path"
  }
]
```

### Responses

#### 200 The migration, its replay enqueued again.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/Migration"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 409 The world is not in the state the request assumed: a stale `expectedSeq`, or a transition already made.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
