POST
/api/v1/profiles/import/preview
Profil-Import prüfen (CSV, XLSX, TXT): Spaltenerkennung, Vorschau je Zeile
Anfrage#
POSIX-Shell · curl
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/profiles/import/preview" \
-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:write
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 |
|---|---|---|---|
file_name | string | Ja | |
content_base64 | string | Ja | |
sheet | string | Nein | |
mapping | object | Nein | |
duplicate_check | union | Nein | |
ignore_cookie_errors | boolean | Nein | |
exclude_lines | array | Nein | |
defaults | object | Nein |
Vollständiges Körperschema
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"file_name",
"content_base64"
],
"properties": {
"file_name": {
"type": "string",
"minLength": 1,
"maxLength": 260
},
"content_base64": {
"type": "string",
"minLength": 4,
"maxLength": 20971520
},
"sheet": {
"type": "string",
"maxLength": 64
},
"mapping": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"enum": [
"id"
]
},
{
"type": "string",
"enum": [
"no"
]
},
{
"type": "string",
"enum": [
"external_id"
]
},
{
"type": "string",
"enum": [
"ip"
]
},
{
"type": "string",
"enum": [
"name"
]
},
{
"type": "string",
"enum": [
"custom_no"
]
},
{
"type": "string",
"enum": [
"group"
]
},
{
"type": "string",
"enum": [
"tags"
]
},
{
"type": "string",
"enum": [
"status"
]
},
{
"type": "string",
"enum": [
"notes"
]
},
{
"type": "string",
"enum": [
"engine"
]
},
{
"type": "string",
"enum": [
"engine_version"
]
},
{
"type": "string",
"enum": [
"os"
]
},
{
"type": "string",
"enum": [
"ua"
]
},
{
"type": "string",
"enum": [
"resolution"
]
},
{
"type": "string",
"enum": [
"platform"
]
},
{
"type": "string",
"enum": [
"username"
]
},
{
"type": "string",
"enum": [
"password"
]
},
{
"type": "string",
"enum": [
"totp_secret"
]
},
{
"type": "string",
"enum": [
"account_notes"
]
},
{
"type": "string",
"enum": [
"cookie"
]
},
{
"type": "string",
"enum": [
"proxytype"
]
},
{
"type": "string",
"enum": [
"proxy"
]
},
{
"type": "string",
"enum": [
"proxy_url"
]
},
{
"type": "string",
"enum": [
"proxy_id"
]
},
{
"type": "string",
"enum": [
"ip_checker"
]
},
{
"type": "string",
"enum": [
"countrycode"
]
},
{
"type": "string",
"enum": [
"regioncode"
]
},
{
"type": "string",
"enum": [
"citycode"
]
},
{
"type": "string",
"enum": [
"start_urls"
]
},
{
"type": "string",
"enum": [
"extensions_set"
]
}
]
},
{
"type": "null"
}
]
}
},
"duplicate_check": {
"anyOf": [
{
"type": "string",
"enum": [
"none"
]
},
{
"type": "string",
"enum": [
"account"
]
},
{
"type": "string",
"enum": [
"account_password"
]
},
{
"type": "string",
"enum": [
"cookie"
]
}
]
},
"ignore_cookie_errors": {
"type": "boolean"
},
"exclude_lines": {
"type": "array",
"items": {
"type": "integer",
"minimum": 1
},
"maxItems": 1000
},
"defaults": {
"type": "object",
"properties": {
"group_id": {
"type": [
"string",
"null"
]
},
"engine": {
"anyOf": [
{
"type": "string",
"enum": [
"chromium"
]
},
{
"type": "string",
"enum": [
"firefox"
]
}
]
},
"engine_version": {
"type": "string",
"pattern": "^[0-9]{2,4}$"
},
"os": {
"type": "string",
"maxLength": 16
},
"tag_ids": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 30
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 50
},
"maxItems": 30
},
"storage_options": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}
}Antworten#
200 · Standardantwort
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"sheets",
"sheet",
"fields",
"columns",
"extra_accounts",
"counts",
"rows"
],
"properties": {
"kind": {
"type": "string"
},
"sheets": {
"type": "array",
"items": {
"type": "string"
}
},
"sheet": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"columns": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"header",
"field"
],
"properties": {
"index": {
"type": "integer"
},
"header": {
"type": "string"
},
"field": {
"type": [
"null",
"string"
]
}
}
}
},
"extra_accounts": {
"type": "integer"
},
"counts": {
"type": "object",
"required": [
"create",
"update",
"invalid",
"duplicate",
"excluded"
],
"properties": {
"create": {
"type": "integer"
},
"update": {
"type": "integer"
},
"invalid": {
"type": "integer"
},
"duplicate": {
"type": "integer"
},
"excluded": {
"type": "integer"
}
}
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"line",
"action",
"status",
"issues",
"warnings",
"profile_id",
"name",
"group",
"tags",
"engine",
"extension_set",
"proxy",
"accounts",
"first_account",
"cookies"
],
"properties": {
"line": {
"type": "integer"
},
"action": {
"type": "string"
},
"status": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"profile_id": {
"type": [
"null",
"string"
]
},
"name": {
"type": "string"
},
"group": {
"type": [
"null",
"string"
]
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"engine": {
"type": [
"null",
"string"
]
},
"extension_set": {
"type": [
"null",
"string"
]
},
"proxy": {
"type": [
"null",
"string"
]
},
"accounts": {
"type": "integer"
},
"first_account": {
"type": [
"null",
"string"
]
},
"cookies": {
"type": "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": "Profil-Import prüfen (CSV, XLSX, TXT): Spaltenerkennung, Vorschau je Zeile",
"tags": [
"Import/Export"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"file_name",
"content_base64"
],
"properties": {
"file_name": {
"type": "string",
"minLength": 1,
"maxLength": 260
},
"content_base64": {
"type": "string",
"minLength": 4,
"maxLength": 20971520
},
"sheet": {
"type": "string",
"maxLength": 64
},
"mapping": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"enum": [
"id"
]
},
{
"type": "string",
"enum": [
"no"
]
},
{
"type": "string",
"enum": [
"external_id"
]
},
{
"type": "string",
"enum": [
"ip"
]
},
{
"type": "string",
"enum": [
"name"
]
},
{
"type": "string",
"enum": [
"custom_no"
]
},
{
"type": "string",
"enum": [
"group"
]
},
{
"type": "string",
"enum": [
"tags"
]
},
{
"type": "string",
"enum": [
"status"
]
},
{
"type": "string",
"enum": [
"notes"
]
},
{
"type": "string",
"enum": [
"engine"
]
},
{
"type": "string",
"enum": [
"engine_version"
]
},
{
"type": "string",
"enum": [
"os"
]
},
{
"type": "string",
"enum": [
"ua"
]
},
{
"type": "string",
"enum": [
"resolution"
]
},
{
"type": "string",
"enum": [
"platform"
]
},
{
"type": "string",
"enum": [
"username"
]
},
{
"type": "string",
"enum": [
"password"
]
},
{
"type": "string",
"enum": [
"totp_secret"
]
},
{
"type": "string",
"enum": [
"account_notes"
]
},
{
"type": "string",
"enum": [
"cookie"
]
},
{
"type": "string",
"enum": [
"proxytype"
]
},
{
"type": "string",
"enum": [
"proxy"
]
},
{
"type": "string",
"enum": [
"proxy_url"
]
},
{
"type": "string",
"enum": [
"proxy_id"
]
},
{
"type": "string",
"enum": [
"ip_checker"
]
},
{
"type": "string",
"enum": [
"countrycode"
]
},
{
"type": "string",
"enum": [
"regioncode"
]
},
{
"type": "string",
"enum": [
"citycode"
]
},
{
"type": "string",
"enum": [
"start_urls"
]
},
{
"type": "string",
"enum": [
"extensions_set"
]
}
]
},
{
"type": "null"
}
]
}
},
"duplicate_check": {
"anyOf": [
{
"type": "string",
"enum": [
"none"
]
},
{
"type": "string",
"enum": [
"account"
]
},
{
"type": "string",
"enum": [
"account_password"
]
},
{
"type": "string",
"enum": [
"cookie"
]
}
]
},
"ignore_cookie_errors": {
"type": "boolean"
},
"exclude_lines": {
"type": "array",
"items": {
"type": "integer",
"minimum": 1
},
"maxItems": 1000
},
"defaults": {
"type": "object",
"properties": {
"group_id": {
"type": [
"string",
"null"
]
},
"engine": {
"anyOf": [
{
"type": "string",
"enum": [
"chromium"
]
},
{
"type": "string",
"enum": [
"firefox"
]
}
]
},
"engine_version": {
"type": "string",
"pattern": "^[0-9]{2,4}$"
},
"os": {
"type": "string",
"maxLength": 16
},
"tag_ids": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 30
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 50
},
"maxItems": 30
},
"storage_options": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}
},
"x-required-scopes": [
"profiles:write"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"sheets",
"sheet",
"fields",
"columns",
"extra_accounts",
"counts",
"rows"
],
"properties": {
"kind": {
"type": "string"
},
"sheets": {
"type": "array",
"items": {
"type": "string"
}
},
"sheet": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"columns": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"header",
"field"
],
"properties": {
"index": {
"type": "integer"
},
"header": {
"type": "string"
},
"field": {
"type": [
"null",
"string"
]
}
}
}
},
"extra_accounts": {
"type": "integer"
},
"counts": {
"type": "object",
"required": [
"create",
"update",
"invalid",
"duplicate",
"excluded"
],
"properties": {
"create": {
"type": "integer"
},
"update": {
"type": "integer"
},
"invalid": {
"type": "integer"
},
"duplicate": {
"type": "integer"
},
"excluded": {
"type": "integer"
}
}
},
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"line",
"action",
"status",
"issues",
"warnings",
"profile_id",
"name",
"group",
"tags",
"engine",
"extension_set",
"proxy",
"accounts",
"first_account",
"cookies"
],
"properties": {
"line": {
"type": "integer"
},
"action": {
"type": "string"
},
"status": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"profile_id": {
"type": [
"null",
"string"
]
},
"name": {
"type": "string"
},
"group": {
"type": [
"null",
"string"
]
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"engine": {
"type": [
"null",
"string"
]
},
"extension_set": {
"type": [
"null",
"string"
]
},
"proxy": {
"type": [
"null",
"string"
]
},
"accounts": {
"type": "integer"
},
"first_account": {
"type": [
"null",
"string"
]
},
"cookies": {
"type": "integer"
}
}
}
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}