POST
/api/v1/kernels/install
Kern-Paket (ZIP aus kern-chromium mit build-info.json) in die Datenwurzel installieren; eigene Kerne unterstützen den Fingerprint
Anfrage#
POSIX-Shell · curl
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/kernels/install" \
-H "Authorization: Bearer $ADBR_API_TOKEN" \
-H "Content-Type: application/json" \
--data @request.jsonVerwende lokale Adresse und Token aus API & MCP. Ersetze Pfadplatzhalter wie {id} durch tatsächliche IDs. Erstelle request.json anhand des folgenden Körperschemas, bevor du den Befehl ausführst.
Authentifizierung und Rechte#
Authentifizierung: Bearer-Token
Scopes: kernels:manage
Alle aufgeführten Scopes sind erforderlich; admin erfüllt Scope-Prüfungen. Kontorechte, Anfrageinhalt, Tresorzustand und Ressourcenrechte können weitere Voraussetzungen setzen.
Parameter#
Keine Pfad- oder Query-Parameter deklariert.
Anfragekörper#
Erforderlich.
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
path | string | Ja |
Vollständiges Körperschema
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"minLength": 3,
"maxLength": 1024
}
},
"additionalProperties": false
}
}
}
}Antworten#
200 · Standardantwort
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"id",
"engine",
"version",
"revision",
"build",
"major",
"path",
"source",
"fingerprint",
"features",
"state",
"installed_at",
"last_used_at"
],
"properties": {
"id": {
"type": "string"
},
"engine": {
"type": "string"
},
"version": {
"type": "string"
},
"revision": {
"type": "string"
},
"build": {
"type": "string"
},
"major": {
"type": "integer"
},
"path": {
"type": "string"
},
"source": {
"type": "string"
},
"fingerprint": {
"type": "boolean"
},
"features": {
"type": "array",
"items": {
"type": "string"
}
},
"state": {
"type": "string"
},
"installed_at": {
"type": [
"null",
"integer"
]
},
"last_used_at": {
"type": [
"null",
"integer"
]
}
}
}
}
}
}default · HTTP-Fehlerhülle. Status und error.code bezeichnen den Fehler.
OpenAPI JSON
{
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}Allgemeine Authentifizierungs- und Transportfehler können zusätzlich zu den dokumentierten Antworten auftreten.
OpenAPI-Definition#
Vollständige Operationsdefinition
OpenAPI JSON
{
"summary": "Kern-Paket (ZIP aus kern-chromium mit build-info.json) in die Datenwurzel installieren; eigene Kerne unterstützen den Fingerprint",
"tags": [
"Kerne"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"minLength": 3,
"maxLength": 1024
}
},
"additionalProperties": false
}
}
}
},
"x-required-scopes": [
"kernels:manage"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"id",
"engine",
"version",
"revision",
"build",
"major",
"path",
"source",
"fingerprint",
"features",
"state",
"installed_at",
"last_used_at"
],
"properties": {
"id": {
"type": "string"
},
"engine": {
"type": "string"
},
"version": {
"type": "string"
},
"revision": {
"type": "string"
},
"build": {
"type": "string"
},
"major": {
"type": "integer"
},
"path": {
"type": "string"
},
"source": {
"type": "string"
},
"fingerprint": {
"type": "boolean"
},
"features": {
"type": "array",
"items": {
"type": "string"
}
},
"state": {
"type": "string"
},
"installed_at": {
"type": [
"null",
"integer"
]
},
"last_used_at": {
"type": [
"null",
"integer"
]
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}