---
title: "Update a graph object"
method: PATCH
path: "/graphs/{id}"
tags: ["Threat Graphs"]
---

# Update a graph object

`PATCH /graphs/{id}`

## Request

- Base URL: `https://www.virustotal.com/api/v3`
- URL: `https://www.virustotal.com/api/v3/graphs/{id}`
- Auth: none required

## Path parameters

- `id` string, required

## Headers

- `x-apikey` string, required

## Request body

- object
  - `graph_data` object: Highlevel graph data.
    - `version` string: Current version of the graph.
  - `links` object[]: Array of links.
    - `connection_type` string: Type of the connection between the source and the target.
    - `source` string: Entity id of the link source.
    - `target` string: Entity id of the link target.
  - `nodes` object[]: Array of nodes.
    - `entity_attributes` object: (optional) Entity related attributes.
    - `entity_id` string: Node entity id.
    - `fx` number, float: (optional) Force x position.
    - `fy` number, float: (optional) Force y position.
    - `index` integer: Index of the node list.
    - `text` string: (optional) Node label.
    - `type` string: Node entity type.
    - `x` number, float: X position of the node.
    - `y` number, float: Y position of the node.
  - `private` boolean: Private status.

---

[API](https://skmtc.dev/virustotal/apis/threat-graph.md) - [All operations](https://skmtc.dev/virustotal/apis/threat-graph/llms.txt) - [OpenAPI document](https://skmtc.dev/virustotal/apis/threat-graph/revisions/de9700a6fe26?raw)
