Datei hochladen
/v1/mailboxes/{mailbox_id}/filesmultipart/form-data, Feld file. Größe von 1 Byte bis 25 MiB. Das Antivirenprogramm prüft die Datei vor dem Herunterladen. Unzureichendes Kontingent ergibt 409, Übergröße – 413, erkannte Bedrohung – 422, nicht verfügbare Prüfung – 503.
Berechtigungs- und Zugangsbereiche · Fehler und Wiederholungen
Anfrage
curl -X POST 'https://adapt-mail.com/v1/mailboxes/<mailbox_id>/files' \ -H 'Authorization: Bearer <access_token>' \Optionen
mailbox_idpathUnbedingtintegerX-Customer-IDheader- Option 1
stringOption 2null
Anforderungstext · multipart/form-data
object
fileUnbedingtstring · binary
Antworten
201 Erfolgreiche Antwort
application/json
object
idstring · uuidfilenamestringcontent_typestringsize_bytesintegerscanned_at- Option 1
stringDatum und Uhrzeit in UTC. Wenn kein Offset vorhanden ist, stellt der Wert auch UTC. dar
Option 2null
401 Anmeldung erforderlich
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
403 Kein Zugriff
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
404 Ressource nicht gefunden
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
409 Staatskonflikt
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
413 Größe überschritten
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
422 Validierungsfehler
application/json
object
detailarrayArray-ElementeobjectlocUnbedingtarrayArray-ElementeOption 1stringOption 2integermsgUnbedingtstringtypeUnbedingtstring
503 Vorübergehende Nichtverfügbarkeit
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject