curl -i -X PUT 'http://localhost:3080/v2/projects/6d2027c1-ce9b-4db0-855e-e58a13bf5149/links/0677eec3-6872-460a-804b-ccc3525128dc' -d '{"filters": {"frequency_drop": [50], "latency": [10]}, "nodes": [{"adapter_number": 0, "label": {"text": "Hello", "x": 64, "y": 0}, "node_id": "f5d999f4-7e82-4b4d-8495-37e015bd7160", "port_number": 3}, {"adapter_number": 2, "node_id": "692bc02a-c687-4d8d-a94f-f25bea0eaea6", "port_number": 4}]}'

PUT /v2/projects/6d2027c1-ce9b-4db0-855e-e58a13bf5149/links/0677eec3-6872-460a-804b-ccc3525128dc HTTP/1.1
{
    "filters": {
        "frequency_drop": [
            50
        ],
        "latency": [
            10
        ]
    },
    "nodes": [
        {
            "adapter_number": 0,
            "label": {
                "text": "Hello",
                "x": 64,
                "y": 0
            },
            "node_id": "f5d999f4-7e82-4b4d-8495-37e015bd7160",
            "port_number": 3
        },
        {
            "adapter_number": 2,
            "node_id": "692bc02a-c687-4d8d-a94f-f25bea0eaea6",
            "port_number": 4
        }
    ]
}


HTTP/1.1 201
Connection: close
Content-Length: 1022
Content-Type: application/json
Date: Sat, 30 Mar 2019 08:49:50 GMT
Server: Python/3.6 GNS3/2.2.0dev8
X-Route: /v2/projects/{project_id}/links/{link_id}

{
    "capture_file_name": null,
    "capture_file_path": null,
    "capturing": false,
    "filters": {
        "frequency_drop": [
            50
        ],
        "latency": [
            10
        ]
    },
    "link_id": "0677eec3-6872-460a-804b-ccc3525128dc",
    "link_type": "ethernet",
    "nodes": [
        {
            "adapter_number": 0,
            "label": {
                "text": "Hello",
                "x": 64,
                "y": 0
            },
            "node_id": "f5d999f4-7e82-4b4d-8495-37e015bd7160",
            "port_number": 3
        },
        {
            "adapter_number": 2,
            "label": {
                "rotation": 0,
                "style": "font-size: 10; font-style: Verdana",
                "text": "2/4",
                "x": -10,
                "y": -10
            },
            "node_id": "692bc02a-c687-4d8d-a94f-f25bea0eaea6",
            "port_number": 4
        }
    ],
    "project_id": "6d2027c1-ce9b-4db0-855e-e58a13bf5149",
    "suspend": false
}
