#!/usr/bin/env bash
set -euo pipefail

# FinanceGPT generated client starter
# Source: FinanceGPT API v2 OpenAPI index
# OpenAPI SHA-256: dea651760d4f9eb2788e7dc398eb1ad7a1304e5c4b008a2407b0027fb746b65d
# Operations: post-knowledge-documents
# Credential: FINANCEGPT_API_KEY environment variable; no credential is embedded.
# Authority: API identity and generated code do not create model-promotion, QLM-binding or Financial Actions authority.

# Ingest a document into a workspace-visible knowledge base
curl -X POST \
  -H "Authorization: Bearer $FINANCEGPT_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  --data '{
    "base_uid": "00000000-0000-4000-8000-000000000001",
    "file": "string",
    "title": "string",
    "data_classification": "public"
}' \
  "https://financegptlabs.com/api/v2/knowledge/documents"
