Zum Hauptinhalt springen
POST
Upload a file

Autorisierungen

Authorization
string
header
erforderlich

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Abfrageparameter

folder
enum<string>
erforderlich

Media folder id

Verfügbare Optionen:
invoice,
subscription,
debitor,
payment,
payment-sepa-mandate,
payment-sepa-xml,
contract,
product,
upload,
default
Beispiel:

"invoice"

Body

multipart/form-data
file
file
erforderlich

Antwort

Media resource created

id
object
read-only
Beispiel:

"01F9Z3ZJXZQZJZJZJZJZJZJZJZ"

mediaFolder
object
isPrivate
boolean

Whether the media is public accessible or not

Beispiel:

true

mimeType
string | null

The mime type of the media

Beispiel:

"image/jpeg"

fileExtension
string

The file extension of the media

Beispiel:

"jpg"

fileName
string

The original file name of the media

Beispiel:

"invoice.jpg"

storageFileName
string

The file name of the media in the storage

Beispiel:

"01F9Z3ZJXZQZJZJZJZJZJZJZJZ.jpg"

createdAt
string<date-time>
read-only

The date and time when the media was created

Beispiel:

"2021-01-01T00:00:00+00:00"