POST
/api/v1/automation/uploads
Upload-Datei verschlüsselt für einen RPA-Ablauf speichern
Anfrage#
POSIX-Shell · curl
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/automation/uploads" \
-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, rpa:write, 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#
Keine Pfad- oder Query-Parameter deklariert.
Anfragekörper#
Erforderlich.
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
name | string | Ja | |
base64 | string | Ja | |
last_modified | integer | Nein |
Vollständiges Körperschema
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"name",
"base64"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"base64": {
"type": "string",
"maxLength": 139810136,
"pattern": "^[A-Za-z0-9+/]*={0,2}$"
},
"last_modified": {
"type": "integer",
"minimum": 0,
"maximum": 8640000000000000
}
},
"additionalProperties": false
}
}
}
}Antworten#
200 · Standardantwort
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"id",
"name",
"size",
"sha256"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"size": {
"type": "integer"
},
"sha256": {
"type": "string"
},
"last_modified": {
"type": "integer",
"minimum": 0,
"maximum": 8640000000000000
}
},
"additionalProperties": false
}
}
}
}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": "Upload-Datei verschlüsselt für einen RPA-Ablauf speichern",
"tags": [
"Automation"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"name",
"base64"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"base64": {
"type": "string",
"maxLength": 139810136,
"pattern": "^[A-Za-z0-9+/]*={0,2}$"
},
"last_modified": {
"type": "integer",
"minimum": 0,
"maximum": 8640000000000000
}
},
"additionalProperties": false
}
}
}
},
"x-required-scopes": [
"runtime:control",
"rpa:write",
"secrets:read"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"id",
"name",
"size",
"sha256"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"size": {
"type": "integer"
},
"sha256": {
"type": "string"
},
"last_modified": {
"type": "integer",
"minimum": 0,
"maximum": 8640000000000000
}
},
"additionalProperties": false
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}