Zum Hauptinhalt springen
POST
Löschen und erneutes Analysieren von Nachweisen sind für API-Schlüssel nicht verfügbar (403; der Body ist { "error": "Not available for API keys" }, oder { "error": "Forbidden" }, wenn dem Schlüssel die Berechtigung des Endpunkts fehlt). Ablauf und Fehlerfälle: Herkunft pro Bestellung per ERP.

Autorisierungen

Authorization
string
header
erforderlich

API key generated in Settings > API Keys. Include as Authorization: Bearer <key>.

Body

multipart/form-data
supplierId
string<uuid>
erforderlich

The supplier of the supplier link (supplierLinks[].supplierId of the article).

articleId
string<uuid>
erforderlich

The article — for per-order origin, the per-order fork's id.

uploadedS3Key
string

The s3Key from POST /api/v1/evidence/upload-url, after the PUT.

uploadedFileName
string

File name; required with uploadedS3Key.

uploadedFileSize
string

Size in bytes (a form field, so a string); required with uploadedS3Key.

uploadedMimeType
string

MIME type; required with uploadedS3Key.

reuseS3Key
string

The s3Key returned by an earlier successful POST /api/v1/evidence. Reuses that company-owned file for this target without another upload; do not send file or uploaded* fields with it.

file
string

The file itself, instead of the uploaded* fields — small files only (at most 4.5 MB, the platform request cap); use the upload URL for anything larger.

evidenceType
enum<string>

Default legal_compliance.

Verfügbare Optionen:
legal_compliance,
questionnaire
note
string

Free-text note for the document. It is passed to the document analysis as context.

certificationScheme
string

The certification scheme the document belongs to (e.g. FSC). It is passed to the document analysis as a hint, and the document is then analysed as a risk-mitigation certificate.

allowDuplicate
enum<string>

Send true to store a second copy of a file that a 409 reported as a duplicate.

Verfügbare Optionen:
true

Antwort

Evidence attached

id
string<uuid>
erforderlich

The new evidence document's id.

s3Key
string
erforderlich

Storage key of the stored file.

fileName
string
erforderlich

File name as stored.

fileSize
number
erforderlich

Size of the stored file in bytes.

mimeType
string
erforderlich

MIME type of the stored file.

message
string
erforderlich

Human-readable confirmation, e.g. that the analysis is in progress.