Zum Hauptinhalt springen
POST
/
media
Error
A valid request URL is required to generate request examples
{
  "id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ",
  "mediaFolder": {
    "name": "invoice"
  },
  "isPrivate": true,
  "mimeType": "image/jpeg",
  "fileExtension": "jpg",
  "fileName": "invoice.jpg",
  "storageFileName": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ.jpg",
  "createdAt": "2021-01-01T00:00:00+00:00"
}

Autorisierungen

Authorization
string
header
erforderlich

Value for the Authorization header parameter.

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

The date and time when the media was created

Beispiel:

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