Zum Hauptinhalt springen
POST
/
storage
Upload a file
curl --request POST \
  --url https://demo.enneo.ai/api/mind/storage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'path=<string>'
{
  "success": true,
  "url": "<string>",
  "path": "<string>"
}

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Body

multipart/form-data
file
file

The file to upload.

path
string

Optional target path.

Antwort

Successful operation

success
boolean
Beispiel:

true

url
string

Public URL to the stored file (if applicable).

path
string

Storage path the file was saved under.