/v2/admin/list/files/{fileId}/downloadAvatar- oder Administratordatei herunterladen
Liefert die Datei über ihre öffentliche files-ID als Download, falls sie im Account vorhanden und nicht gelöscht ist. Diese Downloadfunktion prüft die Datei-ID und Accountzugehörigkeit; die Avatar-Filter des Aufrufers beschränken den direkten Downloadpfad nicht zusätzlich. Kundenspezifische Exportdateien bleiben ausgeschlossen; fehlende Dateien liefern einen JSON-Fehler.
Operation-ID get_v2_admin_list_files_fileId_download
Vertrag & Verhalten
- Dokumentationsstand
- reviewed
- Ändert Zustand
- Nein
- Als readOnly markiert
- Ja
- Für Automation markiert
- Ja
read
Authentifizierung
Eine der folgenden Alternativen muss erfüllt sein (ODER). Innerhalb jeder Alternative werden alle angegebenen Schemas gemeinsam benötigt (UND).
Alternative 1
bearerAuthhttp · bearerExisting edoobox v2 access token. Never substitute API key/secret headers.
Format: JWT
Security-Schema als JSON
{
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT",
"description": "Existing edoobox v2 access token. Never substitute API key/secret headers."
}accountContextapiKeySelected login/account context from the JWT, not a database primary key. Required even for a JWT with one account.
header: edid
Security-Schema als JSON
{
"type": "apiKey",
"in": "header",
"name": "edid",
"description": "Selected login/account context from the JWT, not a database primary key. Required even for a JWT with one account."
}Alternative 2
sessionCookieapiKeyExisting browser login session, with the same permission checks as Bearer authentication.
cookie: _edlogin
Security-Schema als JSON
{
"type": "apiKey",
"in": "cookie",
"name": "_edlogin",
"description": "Existing browser login session, with the same permission checks as Bearer authentication."
}accountContextapiKeySelected login/account context from the JWT, not a database primary key. Required even for a JWT with one account.
header: edid
Security-Schema als JSON
{
"type": "apiKey",
"in": "header",
"name": "edid",
"description": "Selected login/account context from the JWT, not a database primary key. Required even for a JWT with one account."
}Parameter
Pfadparameter
fileIderforderlichÖffentliche files-ID.
Öffentliche v2-ID aus dem ausgewählten Account; keine interne Datenbank-ID.
- pattern
"^files_[a-f0-9]{12}_-?[0-9]+$"
Schema-Beispiel
"files_012345abcdef_123456"Vollständiges Schema als JSON
{
"type": "string",
"pattern": "^files_[a-f0-9]{12}_-?[0-9]+$",
"description": "Öffentliche v2-ID aus dem ausgewählten Account; keine interne Datenbank-ID.",
"examples": [
"files_012345abcdef_123456"
]
}Header
languageoptionalAccount language code, where the resource supports setLanguage().
Schema-Beispiel
"de"Vollständiges Schema als JSON
{
"type": "string",
"examples": [
"de"
]
}Request Body
Kein Request Body in der Spezifikation beschrieben.
Antworten
1HTTP-Status und Antwortinhalt gemeinsam auswerten. In dieser API können auch Antworten mit HTTP 200 einen Fehler enthalten.
200application/octet-stream · application/json
Binärer Download mit Dateiname; bei fehlender Datei JSON-Fehler ED80100/file_not_found.
application/octet-stream
- format
"binary"
Vollständiges Schema als JSON
{
"type": "string",
"format": "binary"
}application/json
error string error_code string error_message string type string Zusätzliche, hier nicht aufgeführte Felder sind erlaubt.
Vollständiges Schema als JSON
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_code": {
"type": "string"
},
"error_message": {
"type": "string"
},
"type": {
"type": "string"
}
},
"additionalProperties": true
}Beispiel
{
"error": "ED80100",
"error_code": "file_not_found",
"error_message": "The requested file could not be found or has been deleted",
"type": "api"
}Quelle & Metadaten
application/models/v2/Admin.php:1getAdmin()Diese Angaben stammen unverändert aus der gelieferten OpenAPI-Datei. Zusätzliche Freigaben, Vorbedingungen, sensible Felder und Hinweise stehen in den Erweiterungen.
x-edoobox-mutates-state
falsex-edoobox-mutationReview
{
"source": {
"file": "application/models/v2/Files.php",
"line": 245
},
"reason": "Existing resource file query/readfile; the legacy File URL audit-log route is separate."
}x-edoobox-runtimeMutationGuard
falsex-edoobox-get-effect
"read"x-edoobox-documentationReview
{
"file": "docs/openapi/operation-contracts/06-admin-settings.json",
"notes": []
}x-edoobox-source
{
"file": "application/models/v2/Admin.php",
"method": "getAdmin",
"line": 1
}x-edoobox-documentationStatus
"reviewed"x-edoobox-readOnly
truex-edoobox-safeForAutomation
truex-edoobox-permission
{
"resource": "admin",
"short": "admi",
"checkedByDispatcher": true,
"levels": [
1,
3,
4
],
"description": "Resource permission mapping from APIPermissions(), Authfunc::_getCheckJWT. Additional model/admin/plugin checks may apply; resources absent from api_permission do not acquire a fictitious scope."
}Vollständige Operation als JSON
{
"operationId": "get_v2_admin_list_files_fileId_download",
"summary": "Avatar- oder Administratordatei herunterladen",
"description": "Liefert die Datei über ihre öffentliche files-ID als Download, falls sie im Account vorhanden und nicht gelöscht ist. Diese Downloadfunktion prüft die Datei-ID und Accountzugehörigkeit; die Avatar-Filter des Aufrufers beschränken den direkten Downloadpfad nicht zusätzlich. Kundenspezifische Exportdateien bleiben ausgeschlossen; fehlende Dateien liefern einen JSON-Fehler.",
"tags": [
"admin"
],
"security": [
{
"bearerAuth": [],
"accountContext": []
},
{
"sessionCookie": [],
"accountContext": []
}
],
"parameters": [
{
"name": "fileId",
"in": "path",
"required": true,
"description": "Öffentliche files-ID.",
"schema": {
"type": "string",
"pattern": "^files_[a-f0-9]{12}_-?[0-9]+$",
"description": "Öffentliche v2-ID aus dem ausgewählten Account; keine interne Datenbank-ID.",
"examples": [
"files_012345abcdef_123456"
]
}
},
{
"name": "language",
"in": "header",
"required": false,
"description": "Account language code, where the resource supports setLanguage().",
"schema": {
"type": "string",
"examples": [
"de"
]
}
}
],
"responses": {
"200": {
"description": "Binärer Download mit Dateiname; bei fehlender Datei JSON-Fehler ED80100/file_not_found.",
"content": {
"application/octet-stream": {
"schema": {
"type": "string",
"format": "binary"
}
},
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_code": {
"type": "string"
},
"error_message": {
"type": "string"
},
"type": {
"type": "string"
}
},
"additionalProperties": true
},
"example": {
"error": "ED80100",
"error_code": "file_not_found",
"error_message": "The requested file could not be found or has been deleted",
"type": "api"
}
}
}
}
},
"x-edoobox-mutates-state": false,
"x-edoobox-mutationReview": {
"source": {
"file": "application/models/v2/Files.php",
"line": 245
},
"reason": "Existing resource file query/readfile; the legacy File URL audit-log route is separate."
},
"x-edoobox-runtimeMutationGuard": false,
"x-edoobox-get-effect": "read",
"x-edoobox-documentationReview": {
"file": "docs/openapi/operation-contracts/06-admin-settings.json",
"notes": []
},
"x-edoobox-source": {
"file": "application/models/v2/Admin.php",
"method": "getAdmin",
"line": 1
},
"x-edoobox-documentationStatus": "reviewed",
"x-edoobox-readOnly": true,
"x-edoobox-safeForAutomation": true,
"x-edoobox-permission": {
"resource": "admin",
"short": "admi",
"checkedByDispatcher": true,
"levels": [
1,
3,
4
],
"description": "Resource permission mapping from APIPermissions(), Authfunc::_getCheckJWT. Additional model/admin/plugin checks may apply; resources absent from api_permission do not acquire a fictitious scope."
}
}