Kaffeeundcode
n8n Flow-Bibliothek
n8n Workflow 01.06.2026

Flow Arbeitsbereich

Device Rename Action

Flow prüfen, Nodes verstehen, JSON importieren und Credentials sauber anpassen.

30_Device_Rename_Action.json

{
    "name": "30_Device_Rename_Action",
    "nodes": [
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "rename-device",
                "options": {}
            },
            "name": "Webhook Trigger",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                250,
                300
            ]
        },
        {
            "parameters": {
                "authentication": "predefinedCredentialType",
                "nodeCredentialType": "microsoftGraphOAuth2Api",
                "requestMethod": "POST",
                "url": "=https://graph.microsoft.com/beta/deviceManagement/managedDevices/{{ $json.body.deviceId }}/setDeviceName",
                "options": {},
                "bodyParametersJson": "={"deviceName": "NB-{{ $json.body.serialNumber }}"}"
            },
            "name": "Rename Device",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 3,
            "position": [
                450,
                300
            ],
            "credentials": {
                "microsoftGraphOAuth2Api": {
                    "id": "YOUR_CREDENTIAL_ID",
                    "name": "Microsoft Graph Account"
                }
            }
        }
    ],
    "connections": {
        "Webhook Trigger": {
            "main": [
                [
                    {
                        "node": "Rename Device",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}