Zum Inhalt springen

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 example
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.

Media type*/*
string

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
}

Problem

Media typeapplication/problem+json
object
code
required
string
Allowed values: validation not_authenticated not_allowed needs_human second_factor_required unknown_command idempotency_conflict not_found conflict busy internal
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"
}