POST

/api/v1/profiles/import

Profile aus Datei anlegen oder über die Spalte id aktualisieren; Ergebnis je Zeile

Anfrage#

POSIX-Shell · curl
curl --fail-with-body --request POST \
  "$ADBR_API_URL/api/v1/profiles/import" \
  -H "Authorization: Bearer $ADBR_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data @request.json

Verwende 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.

FeldTypPflichtBeschreibung
file_namestringJa
content_base64stringJa
sheetstringNein
mappingobjectNein
duplicate_checkunionNein
ignore_cookie_errorsbooleanNein
exclude_linesarrayNein
defaultsobjectNein
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": [
          "created",
          "updated",
          "skipped",
          "failed",
          "results"
        ],
        "properties": {
          "created": {
            "type": "integer"
          },
          "updated": {
            "type": "integer"
          },
          "skipped": {
            "type": "integer"
          },
          "failed": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "line",
                "status",
                "id",
                "no",
                "error",
                "warnings",
                "cookies"
              ],
              "properties": {
                "line": {
                  "type": "integer"
                },
                "status": {
                  "type": "string"
                },
                "id": {
                  "type": [
                    "null",
                    "string"
                  ]
                },
                "no": {
                  "type": [
                    "null",
                    "integer"
                  ]
                },
                "error": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "warnings": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "code",
                      "message"
                    ],
                    "properties": {
                      "code": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      }
                    }
                  }
                },
                "cookies": {
                  "type": [
                    "null",
                    "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": "Profile aus Datei anlegen oder über die Spalte id aktualisieren; Ergebnis 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": [
              "created",
              "updated",
              "skipped",
              "failed",
              "results"
            ],
            "properties": {
              "created": {
                "type": "integer"
              },
              "updated": {
                "type": "integer"
              },
              "skipped": {
                "type": "integer"
              },
              "failed": {
                "type": "integer"
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "line",
                    "status",
                    "id",
                    "no",
                    "error",
                    "warnings",
                    "cookies"
                  ],
                  "properties": {
                    "line": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string"
                    },
                    "id": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "no": {
                      "type": [
                        "null",
                        "integer"
                      ]
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "code",
                            "message"
                          ],
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "message": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "code",
                          "message"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "cookies": {
                      "type": [
                        "null",
                        "string"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "default": {
      "description": "HTTP error envelope. The status and error.code identify the failure.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

Suche nach Headless, MCP, Cookies oder einem API-Endpunkt.

↑ ↓ NavigierenEnter ÖffnenEsc Schließen