---
title: "Runs a data integrity scan on the datastore, attempts to fix any issues it can and returns any found issues"
method: POST
path: "/database/fix-data-integrity"
tags: ["Database"]
---

# Runs a data integrity scan on the datastore, attempts to fix any issues it can and returns any found issues

`POST /database/fix-data-integrity`

Runs a data integrity scan on the datastore, attempts to fix any issues it can, and returns any found issues. Requires admin access. Only once instance may run at a time, including runs of checkDataIntegrity.

## Response `202`

Base empty response

- Empty
  - `meta` Meta, required
    - `filterableFields` string[]
    - `pagination` Pagination
      - `limit` number, required
      - `offset` number, required
      - `totalCount` number, required
    - `apiEnrollmentVersion` string
    - `apiVersion` string
  - `data` object, required

## Other responses

- `401` — The currently supplied session does not have the correct access rights to request this resource
- `429` — The resource requested is rate limited and the rate limit has been exceeded

---

[API](https://skmtc.net/openziti/apis/ziti-fabric.md) · [All operations](https://skmtc.net/openziti/apis/ziti-fabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openziti/ziti-fabric/revisions/b899875c8f57/schema)
