图引擎服务 GES-批量更新边属性:请求示例

时间:2024-05-26 05:52:04

请求示例

批量更新边属性,边的起点为46,边的终点分别为39,38。

POST http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/edges/properties/action?action_id=batch-update
{
    "edges": [
        {
            "source": "46",
            "target": "39",
            "properties": {
                "Rating": [
                    5
                ],
                "Datetime": [
                    "2018-01-0120:30:05"
                ]
            }
        },
        {
            "source": "46",
            "target": "38",
            "index": "0",
            "properties": {
                "Rating": [
                    4
                ],
                "Datetime": [
                    "2018-01-0120:30:05"
                ]
            }
        }
    ]
}

SERVER_URL:图的访问地址,取值请参考业务面API使用限制

support.huaweicloud.com/api-ges/ges_03_0430.html