Store one file unchanged in the Belegablage, the raw bytes as the body and its media type as Content-Type (runs and logs file.store). Returns its SHA-256 for beleg.deliver. CLI: decuma file.store --media-type application/pdf --content @rechnung.pdf
POST
/v1/files
Code sample: Shell / cURL
curl --request POST \ --url https://example.com/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: */*' \ --data exampleAuthorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Idempotency-Key
string
A repeated key returns the first result without running the Command again.
Decuma-Mandant
string format: uuid
The Mandant a session acts on; an API-Schlüssel is bound to its own.
Request Bodyrequired
Section titled “Request Bodyrequired”Media type*/*
string
Responses
Section titled “Responses”Stored
Media typeapplication/json
object
hash
required
SHA-256 of the content, hex: the page reference of beleg.deliver.
string
media_type
required
string
size
required
integer
Example generated
{ "hash": "example", "media_type": "example", "size": 1}default
Section titled “default”Problem
Media typeapplication/problem+json
object
code
required
string
detail
What is wrong.
string
next_command
The Command the next step names, whatever the language of next_step.
string | null
next_step
What to do next.
string
retry_payload
Fields that complete the refused call when the refusal carries a proposal: merged into its payload, the same call goes through.
object | null
status
required
integer
title
required
string
type
required
string
Example
{ "code": "validation"}