POST

/api/v1/extension-defaults/{id}/capture

Einrichtung aus einem vorhandenen Profil übernehmen

Anfrage#

POSIX-Shell · curl
curl --fail-with-body --request POST \
  "$ADBR_API_URL/api/v1/extension-defaults/{id}/capture" \
  -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: extensions:write, 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#

ParameterOrtPflichtBeschreibung
idpathJa
Vollständige Parameterschemas
OpenAPI JSON
[
  {
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "in": "path",
    "name": "id",
    "required": true
  }
]

Anfragekörper#

Erforderlich.

FeldTypPflichtBeschreibung
profile_idstringJa
Vollständiges Körperschema
OpenAPI JSON
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "profile_id"
        ],
        "properties": {
          "profile_id": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  }
}

Antworten#

200 · Standardantwort
OpenAPI JSON
{
  "description": "Default Response",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "extension_id",
          "name",
          "engine",
          "enabled",
          "use_template",
          "template"
        ],
        "properties": {
          "extension_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "engine": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "chromium"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "firefox"
                ]
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "use_template": {
            "type": "boolean"
          },
          "template": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "revision",
                  "version_id",
                  "version",
                  "created_at",
                  "source_profile_id",
                  "source_name"
                ],
                "properties": {
                  "revision": {
                    "type": "integer"
                  },
                  "version_id": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  },
                  "created_at": {
                    "type": "integer"
                  },
                  "source_profile_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "source_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    }
  }
}
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": "Einrichtung aus einem vorhandenen Profil übernehmen",
  "tags": [
    "Erweiterungen"
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "profile_id"
          ],
          "properties": {
            "profile_id": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      }
    }
  },
  "parameters": [
    {
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "in": "path",
      "name": "id",
      "required": true
    }
  ],
  "x-required-scopes": [
    "extensions:write",
    "profiles:read",
    "secrets:read"
  ],
  "responses": {
    "200": {
      "description": "Default Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "extension_id",
              "name",
              "engine",
              "enabled",
              "use_template",
              "template"
            ],
            "properties": {
              "extension_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "engine": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "chromium"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "firefox"
                    ]
                  }
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "use_template": {
                "type": "boolean"
              },
              "template": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "revision",
                      "version_id",
                      "version",
                      "created_at",
                      "source_profile_id",
                      "source_name"
                    ],
                    "properties": {
                      "revision": {
                        "type": "integer"
                      },
                      "version_id": {
                        "type": "string"
                      },
                      "version": {
                        "type": "string"
                      },
                      "created_at": {
                        "type": "integer"
                      },
                      "source_profile_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "source_name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "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