POST
/api/v1/profiles/{id}/cookies/remove
Ausgewählte Cookies einschließlich vorgemerkter Kopien löschen
Anfrage#
POSIX-Shell · curl
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/profiles/{id}/cookies/remove" \
-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: cookies:write
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 |
|---|---|---|---|
cookies | array | Ja |
Vollständiges Körperschema
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"cookies"
],
"properties": {
"cookies": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value",
"domain",
"host_only",
"path",
"expires",
"http_only",
"secure",
"same_site",
"session",
"partition_key",
"priority",
"source_scheme",
"source_port",
"creation",
"last_access"
],
"properties": {
"firefox": {
"type": "object",
"required": [
"partition_key",
"partitioned",
"user_context_id"
],
"properties": {
"partition_key": {
"type": "string"
},
"partitioned": {
"type": "boolean"
},
"user_context_id": {
"type": "integer"
}
}
},
"name": {
"type": "string"
},
"value": {
"type": "string"
},
"domain": {
"type": "string"
},
"host_only": {
"type": "boolean"
},
"path": {
"type": "string"
},
"expires": {
"type": [
"null",
"number"
]
},
"http_only": {
"type": "boolean"
},
"secure": {
"type": "boolean"
},
"same_site": {
"type": "string"
},
"session": {
"type": "boolean"
},
"partition_key": {
"anyOf": [
{
"type": "object",
"required": [
"top_level_site",
"has_cross_site_ancestor"
],
"properties": {
"top_level_site": {
"type": "string"
},
"has_cross_site_ancestor": {
"type": "boolean"
}
}
},
{
"type": "null"
}
]
},
"priority": {
"type": [
"null",
"string"
]
},
"source_scheme": {
"type": [
"null",
"string"
]
},
"source_port": {
"type": [
"null",
"integer"
]
},
"creation": {
"type": [
"null",
"number"
]
},
"last_access": {
"type": [
"null",
"number"
]
}
}
},
"minItems": 1,
"maxItems": 20000
}
},
"additionalProperties": false
}
}
}
}Antworten#
200 · Standardantwort
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"removed"
],
"properties": {
"removed": {
"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": "Ausgewählte Cookies einschließlich vorgemerkter Kopien löschen",
"tags": [
"Cookies"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"cookies"
],
"properties": {
"cookies": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value",
"domain",
"host_only",
"path",
"expires",
"http_only",
"secure",
"same_site",
"session",
"partition_key",
"priority",
"source_scheme",
"source_port",
"creation",
"last_access"
],
"properties": {
"firefox": {
"type": "object",
"required": [
"partition_key",
"partitioned",
"user_context_id"
],
"properties": {
"partition_key": {
"type": "string"
},
"partitioned": {
"type": "boolean"
},
"user_context_id": {
"type": "integer"
}
}
},
"name": {
"type": "string"
},
"value": {
"type": "string"
},
"domain": {
"type": "string"
},
"host_only": {
"type": "boolean"
},
"path": {
"type": "string"
},
"expires": {
"type": [
"null",
"number"
]
},
"http_only": {
"type": "boolean"
},
"secure": {
"type": "boolean"
},
"same_site": {
"type": "string"
},
"session": {
"type": "boolean"
},
"partition_key": {
"anyOf": [
{
"type": "object",
"required": [
"top_level_site",
"has_cross_site_ancestor"
],
"properties": {
"top_level_site": {
"type": "string"
},
"has_cross_site_ancestor": {
"type": "boolean"
}
}
},
{
"type": "null"
}
]
},
"priority": {
"type": [
"null",
"string"
]
},
"source_scheme": {
"type": [
"null",
"string"
]
},
"source_port": {
"type": [
"null",
"integer"
]
},
"creation": {
"type": [
"null",
"number"
]
},
"last_access": {
"type": [
"null",
"number"
]
}
}
},
"minItems": 1,
"maxItems": 20000
}
},
"additionalProperties": false
}
}
}
},
"parameters": [
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"in": "path",
"name": "id",
"required": true
}
],
"x-required-scopes": [
"cookies:write"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"removed"
],
"properties": {
"removed": {
"type": "integer"
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}