API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

POST /v1/agents/assets/{assetId}/commands

POST/v1/agents/assets/{assetId}/commands

Dispatch a predefined command to the agent on an asset

Request Body

NameTypBeschreibung
commandIderforderlichstring
targetstring

Pfad-Parameter

NameTypBeschreibung
assetIderforderlichstring

Beispiel

curl -X POST https://api.codemeta-os.de/v1/agents/assets/{assetId}/commands \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "commandId": "string",
  "target": "string"
}'
const result = await cm.agents.post({
  "commandId": "string",
  "target": "string"
});

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche