---
title: "Share a company document with other companies"
method: PUT
path: "/api/company-documents/{id}/share"
tags: ["Company Documents"]
---

# Share a company document with other companies

`PUT /api/company-documents/{id}/share`

Gives the listed companies access to a document, approved by the caller, and notifies each of them. The body is a bare array of company ids. Anyone who can see the document may share it — not only its owner. The document's owner, the company it is filed on, ids naming no company, and companies that already hold an approved share are skipped; a pending access request from a listed company is approved in place. Responds with the companies this call newly gave access to, which can be none. A document the caller cannot see answers 404; a public one answers 409 `company_document_already_public`. Notifications are best-effort: access is granted even if one cannot be published.

## Path parameters

- `id` string, required

## Request body

- string[]

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `sharedWithCompanyIds` string[], required

## 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/:id/share/put.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)
