Skip to main content
POST
Public Upload Analysis File
Attaches a document to an existing analysis (e.g. a report for a PCD analysis). It is the companion step to POST /v0/analysis/disability.

Overview

  • Method: POST
  • Path: /v0/analysis/files
  • OperationId: public_upload_analysis_file_v0_analysis_files_post
  • Authentication: x-api-key header

Main fields

The file content goes inline in the body, in base64 — not multipart/form-data. Make sure mime_type matches the actual file content.

Request example

Authorizations

x-api-key
string
header
required

Body

application/json
analysis_id
string<uuid>
required
name
string
required
document_type
enum<string>
required

Document types specifically for analysis workflows.

Available options:
DISABILITY_MEDICAL_REPORT,
DISABILITY_CLASSIFICATION,
MEDICAL_CERTIFICATE
mime_type
enum<string>
required
Available options:
application/pdf,
image/jpeg,
image/png,
image/jpeg
file_base64
string
required

Conteúdo binário do arquivo codificado em base64.

Response

Successful Response

id
string<uuid>
required
name
string
required
file_path
string
required
mimetype
string
required
document_type
enum<string>
required

Document types specifically for analysis workflows.

Available options:
DISABILITY_MEDICAL_REPORT,
DISABILITY_CLASSIFICATION,
MEDICAL_CERTIFICATE