POST

/api/v1/automation/synchronizer/text

Text oder Zufallszahlen auf synchronisierte Fenster verteilen

Anfrage#

POSIX-Shell · curl
curl --fail-with-body --request POST \
  "$ADBR_API_URL/api/v1/automation/synchronizer/text" \
  -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: runtime:control, sync:control

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
target_idstringJa
selectorstringNein
framesarrayNein
include_sourcebooleanNein
appendbooleanNein
modeunionJa
textstringNein
minimumintegerNein
maximumintegerNein
uniquebooleanNein
key_min_msintegerNein
key_max_msintegerNein
Vollständiges Körperschema
OpenAPI JSON
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "target_id",
          "mode"
        ],
        "properties": {
          "target_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "selector": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          },
          "frames": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4000
            },
            "maxItems": 16
          },
          "include_source": {
            "type": "boolean"
          },
          "append": {
            "type": "boolean"
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "same"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "lines"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "shuffle"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "random"
                ]
              }
            ]
          },
          "text": {
            "type": "string",
            "maxLength": 210000
          },
          "minimum": {
            "type": "integer",
            "minimum": -1000000000,
            "maximum": 1000000000
          },
          "maximum": {
            "type": "integer",
            "minimum": -1000000000,
            "maximum": 1000000000
          },
          "unique": {
            "type": "boolean"
          },
          "key_min_ms": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2000
          },
          "key_max_ms": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2000
          }
        },
        "additionalProperties": false
      }
    }
  }
}

Antworten#

200 · Standardantwort
OpenAPI JSON
{
  "description": "Default Response",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "results"
        ],
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "profile_id",
                "ok"
              ],
              "properties": {
                "profile_id": {
                  "type": "string"
                },
                "ok": {
                  "type": "boolean"
                },
                "error": {
                  "type": "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": "Text oder Zufallszahlen auf synchronisierte Fenster verteilen",
  "tags": [
    "Automation"
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "target_id",
            "mode"
          ],
          "properties": {
            "target_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "selector": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4000
            },
            "frames": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4000
              },
              "maxItems": 16
            },
            "include_source": {
              "type": "boolean"
            },
            "append": {
              "type": "boolean"
            },
            "mode": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "same"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "lines"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "shuffle"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "random"
                  ]
                }
              ]
            },
            "text": {
              "type": "string",
              "maxLength": 210000
            },
            "minimum": {
              "type": "integer",
              "minimum": -1000000000,
              "maximum": 1000000000
            },
            "maximum": {
              "type": "integer",
              "minimum": -1000000000,
              "maximum": 1000000000
            },
            "unique": {
              "type": "boolean"
            },
            "key_min_ms": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2000
            },
            "key_max_ms": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2000
            }
          },
          "additionalProperties": false
        }
      }
    }
  },
  "x-required-scopes": [
    "runtime:control",
    "sync:control"
  ],
  "responses": {
    "200": {
      "description": "Default Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "results"
            ],
            "properties": {
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "profile_id",
                    "ok"
                  ],
                  "properties": {
                    "profile_id": {
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "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