POST
/api/v1/windows/{id}/bounds
Position und Größe eines Profilfensters setzen oder es minimieren bzw. maximieren
Anfrage#
POSIX-Shell · curl
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/windows/{id}/bounds" \
-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: runtime:control
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.
Vollständiges Körperschema
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"type": "object",
"required": [
"x",
"y",
"width",
"height"
],
"properties": {
"x": {
"type": "integer",
"minimum": -100000,
"maximum": 100000
},
"y": {
"type": "integer",
"minimum": -100000,
"maximum": 100000
},
"width": {
"type": "integer",
"minimum": 200,
"maximum": 100000
},
"height": {
"type": "integer",
"minimum": 200,
"maximum": 100000
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"anyOf": [
{
"type": "string",
"enum": [
"minimized"
]
},
{
"type": "string",
"enum": [
"maximized"
]
}
]
}
},
"additionalProperties": false
}
]
}
}
}
}Antworten#
200 · Standardantwort
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"type": "boolean"
}
}
}
}
}
}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": "Position und Größe eines Profilfensters setzen oder es minimieren bzw. maximieren",
"tags": [
"Laufzeit"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"type": "object",
"required": [
"x",
"y",
"width",
"height"
],
"properties": {
"x": {
"type": "integer",
"minimum": -100000,
"maximum": 100000
},
"y": {
"type": "integer",
"minimum": -100000,
"maximum": 100000
},
"width": {
"type": "integer",
"minimum": 200,
"maximum": 100000
},
"height": {
"type": "integer",
"minimum": 200,
"maximum": 100000
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"anyOf": [
{
"type": "string",
"enum": [
"minimized"
]
},
{
"type": "string",
"enum": [
"maximized"
]
}
]
}
},
"additionalProperties": false
}
]
}
}
}
},
"parameters": [
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"in": "path",
"name": "id",
"required": true
}
],
"x-required-scopes": [
"runtime:control"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"type": "boolean"
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}