POST
/api/v1/profiles/{id}/website-storage/export
Website-Speicher geöffneter Tabs und Frames mit Partitionenzuordnung exportieren
Anfrage#
POSIX-Shell · curl
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/profiles/{id}/website-storage/export" \
-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: profiles:read, secrets:read
Alle aufgeführten Scopes sind erforderlich; admin erfüllt Scope-Prüfungen. Kontorechte, Anfrageinhalt, Tresorzustand und Ressourcenrechte können weitere Voraussetzungen setzen.
Parameter#
| Parameter | Ort | Pflicht | Beschreibung |
|---|---|---|---|
id | path | Ja |
Vollständige Parameterschemas
OpenAPI JSON
[
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"in": "path",
"name": "id",
"required": true
}
]Anfragekörper#
Erforderlich.
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
origins | array | Ja | |
kinds | array | Ja |
Vollständiges Körperschema
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"origins",
"kinds"
],
"properties": {
"origins": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"minItems": 1,
"maxItems": 50
},
"kinds": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"enum": [
"local"
]
},
{
"type": "string",
"enum": [
"session"
]
},
{
"type": "string",
"enum": [
"indexeddb"
]
}
]
},
"minItems": 1,
"maxItems": 3,
"uniqueItems": true
}
},
"additionalProperties": false
}
}
}
}Antworten#
200 · Standardantwort
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"format",
"documents",
"skipped_documents"
],
"properties": {
"format": {
"type": "string",
"enum": [
"adbr-website-storage-v1"
]
},
"documents": {
"type": "array",
"items": {
"type": "object",
"required": [
"target_id",
"frame_id",
"parent_frame_id",
"top_level_origin",
"ancestor_origins",
"origin",
"storage_key",
"data"
],
"properties": {
"target_id": {
"type": "string"
},
"frame_id": {
"type": "string"
},
"parent_frame_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"top_level_origin": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"ancestor_origins": {
"type": "array",
"items": {
"type": "string"
}
},
"origin": {
"type": "string"
},
"storage_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"data": {
"type": "object",
"additionalProperties": {}
}
}
}
},
"skipped_documents": {
"type": "array",
"items": {
"type": "object",
"required": [
"target_id",
"frame_id",
"reason"
],
"properties": {
"target_id": {
"type": "string"
},
"frame_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"reason": {
"type": "string"
},
"value_type": {
"type": "string"
}
}
}
}
}
}
}
}
}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": "Website-Speicher geöffneter Tabs und Frames mit Partitionenzuordnung exportieren",
"tags": [
"Import/Export"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"origins",
"kinds"
],
"properties": {
"origins": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"minItems": 1,
"maxItems": 50
},
"kinds": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"enum": [
"local"
]
},
{
"type": "string",
"enum": [
"session"
]
},
{
"type": "string",
"enum": [
"indexeddb"
]
}
]
},
"minItems": 1,
"maxItems": 3,
"uniqueItems": true
}
},
"additionalProperties": false
}
}
}
},
"parameters": [
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"in": "path",
"name": "id",
"required": true
}
],
"x-required-scopes": [
"profiles:read",
"secrets:read"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"format",
"documents",
"skipped_documents"
],
"properties": {
"format": {
"type": "string",
"enum": [
"adbr-website-storage-v1"
]
},
"documents": {
"type": "array",
"items": {
"type": "object",
"required": [
"target_id",
"frame_id",
"parent_frame_id",
"top_level_origin",
"ancestor_origins",
"origin",
"storage_key",
"data"
],
"properties": {
"target_id": {
"type": "string"
},
"frame_id": {
"type": "string"
},
"parent_frame_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"top_level_origin": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"ancestor_origins": {
"type": "array",
"items": {
"type": "string"
}
},
"origin": {
"type": "string"
},
"storage_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"data": {
"type": "object",
"additionalProperties": {}
}
}
}
},
"skipped_documents": {
"type": "array",
"items": {
"type": "object",
"required": [
"target_id",
"frame_id",
"reason"
],
"properties": {
"target_id": {
"type": "string"
},
"frame_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"reason": {
"type": "string"
},
"value_type": {
"type": "string"
}
}
}
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}