图引擎服务 GES-批量添加点(2.1.16):请求示例

时间:2024-07-01 17:32:17

请求示例

批量添加点,待添加的点数组的点名称分别为150,6。

POST http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/vertices/action?action_id=batch-add
{
    "vertices": [
        {
            "vertex": "150",
            "label": "movie",
            "properties": {
                "movieid": [
                    "150"
                ],
                "title": [
                    "testmoive"
                ],
                "genres": [
                    "Comedy"
                ]
            }
        },
        {
            "vertex": "6",
            "label": "movie",
            "properties": {
                "movieid": [
                    "6"
                ],
                "title": [
                    "testmoive_exist_id"
                ],
                "genres": [
                    "Comedy"
                ]
            }
        }
    ],
    "overrideExists": true
}
  • SERVER_URL:图的访问地址,取值请参考业务面API使用限制
  • 样例中,假设“6”这个点已存在图中,则覆盖“6”这个点的属性。
support.huaweicloud.com/api-ges/ges_03_0163.html