---
title: "Bulk Apply Ai Titles"
method: POST
path: "/api/businesses/{business_id}/documents/apply-ai-titles"
tags: ["Businesses"]
---

# Bulk Apply Ai Titles

`POST /api/businesses/{business_id}/documents/apply-ai-titles`

## 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/apply-ai-titles`
- Auth: HTTP bearer

Copy standardized_name → file_name for selected documents.

Documents without a standardized_name are skipped. Deduplication
is applied so multiple docs with the same AI title get unique names.

## Path parameters

- `business_id` string, required

## Request body

- BulkApplyAITitlesRequest: Request to apply AI-generated titles as display names. Supports three scopes (mutually exclusive, checked in this order): 1. all_documents=True → apply to entire VDR 2. folder_id set → apply to all docs in that folder 3. document_ids set → apply to specific docs
  - `document_ids` string[], nullable
  - `folder_id` string, nullable
  - `all_documents` boolean

## 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)
