---
title: "Upload staff-only evidence (migration 778)"
method: PUT
path: "/accountant/companies/{customerId}/staff-evidence"
tags: ["Documents"]
---

# Upload staff-only evidence (migration 778)

`PUT /accountant/companies/{customerId}/staff-evidence`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/staff-evidence`
- Auth: HTTP bearer

A client's private support, kept apart from documents: no client route, search, connector, engine, Penny queue, thread or reconciliation reads it. Signed-in firm staff with access to the client only; every API key and service account is refused (403). The body is the file's bytes and Content-Type its type (the upload size and type limits apply: 413 and 415). The uploader needs access to the named legal entity. The bytes are virus-scanned (422 `UPLOAD_INFECTED`; 503 `UPLOAD_SCAN_PENDING` when the scan has not finished). The answer carries the server's SHA-256. The id is used as `openingCorrection.staffEvidenceId` on a prior-period adjustment.

## Path parameters

- `customerId` string, uuid, required

## Query parameters

- `entityId` string, uuid, required
- `docDate` string, date, required
- `name` string, required

## Request body `application/pdf`

- string, binary

## Response `201`

The stored staff-only evidence

- object
  - `success` boolean
  - `data` StaffEvidenceFile: Migration 778, staff-only evidence. Never shown to a client.
    - `id` string, uuid
    - `customerId` string, uuid
    - `entityId` string, uuid
    - `fileName` string
    - `mimeType` string
    - `sizeBytes` integer
    - `sha256` string
    - `docDate` string, date
    - `uploadedByUserId` string, uuid
    - `createdAt` string, date-time
    - `staffOnly` true

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member

## Changes

- **2026-12-03** `c031fae5d544`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/staff-evidence/put.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
