---
title: "POST /batch"
method: POST
path: "/batch"
tags: ["Centralized Authorization Data"]
---

# POST /batch

`POST /batch`

Deletes and adds many facts in one atomic batch. Facts are inserted and deleted in-order (ie: `insert`ed facts may be `delete`d in the same transaction). `null` can be used as a wildcard in deleted facts. Does not throw an error when the facts to delete are not found.

## Request body

- FactChangeset[]
  - union — A grouped run of facts to insert or delete. Inserted facts must contain concrete fact args, but deleted facts may contain wildcards.
    - object
      - `inserts` Fact[], required
        - `predicate` string, required
        - `args` Value[], required
          - `type` string, nullable
          - `id` string, nullable
    - object
      - `deletes` Fact[], required
        - `predicate` string, required
        - `args` Value[], required
          - `type` string, nullable
          - `id` string, nullable

## Response `200`

- ApiResult
  - `message` string, required

## Other responses

- `default`

---

[API](https://skmtc.net/osohq/apis/oso-cloud-http-api.md) · [All operations](https://skmtc.net/osohq/apis/oso-cloud-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/osohq/oso-cloud-http-api/versions/edaea3b218bd/schema)
