---
title: "Set Document Version"
method: PUT
path: "/api/businesses/{business_id}/documents/{document_id}/supersedes"
tags: ["Businesses"]
---

# Set Document Version

`PUT /api/businesses/{business_id}/documents/{document_id}/supersedes`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/businesses/{business_id}/documents/{document_id}/supersedes`
- Auth: HTTP bearer

Mark document_id as the newer version of another file in this deal.

## Path parameters

- `business_id` string, required
- `document_id` string, uuid, required

## Request body

- DocumentSupersedesBody: Older file that this upload replaces. Set by an advisor, never by AI.
  - `supersedes_document_id` string, uuid, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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