---
title: "Make an own company document public"
method: PATCH
path: "/api/company-documents/make-public"
tags: ["Company Documents"]
---

# Make an own company document public

`PATCH /api/company-documents/make-public`

Makes the caller's document readable by every company, drops its pending access requests, and returns it as it now stands — the document itself, not wrapped in { data, metadata }. `confirmation` must be the literal `public`. A document the caller cannot see answers 404. A document filed on a different company than its owner (strictly shared between two parties) answers 409 `strictly_shared_document_cannot_be_made_public`, and one that already has an approved share answers 409 `company_document_status_cannot_reverse`. Only the owner may do it (403). A document that is already public is returned unchanged. When the document is of a type that maps a cascade-tracing node, a publicly-shared event is published either way.

## Request body

- object
  - `id` string, required
  - `confirmation` 'public', required

## Response `200`

Default Response

- object
  - `id` string, required
  - `companyId` string, nullable, required
  - `ownerCompanyId` string, nullable, required
  - `name` string, required
  - `documentTypeId` string, nullable, required
  - `fileId` string, nullable, required
  - `fileUrl` string, nullable, required
  - `originalFileUrl` string, nullable, required
  - `fileType` string, nullable, required
  - `fileContentType` string, nullable, required
  - `isPublic` union, required
    - boolean
    - number
  - `type` string, nullable, required
  - `createdAt` string, date-time, nullable, required
  - `updatedAt` string, date-time, nullable, required
  - `permissions` object[], required
    - `documentId` string, required
    - `documentOwnerCompanyId` string, nullable, required
    - `sharedWithCompanyId` string, required
    - `sharedWithCompanyName` string, nullable, required
    - `requestedAt` string, date-time, nullable, required
    - `approvedAt` string, date-time, nullable, required
  - `privacyStatus` object, required
    - `status` 'public' | 'shared' | 'shared_to' | 'shared_by' | 'private' | 'private_requests', required
    - `requests` integer
    - `approvedRequests` integer

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `409` — Default Response

## Changes

> 56 revisions in range; 1 not diffed.

- **2026-09-30** `92d9b9ebe5ad` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/company-documents/make-public/patch.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/retraced/apis/api-reference/revisions/43a47823848e?raw)
