> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ModifyGraphRequest

> ModifyGraphRequest — Kinetica JavaScript API

interface ModifyGraphRequest \{\
&#x20;[edges](#edges): string\[];\
&#x20;[graph\_name](#graph_name): string;\
&#x20;[nodes](#nodes): string\[];\
&#x20;[options](#options)?: Record\<string, string>;\
&#x20;[restrictions](#restrictions): string\[];\
&#x20;[weights](#weights): string\[];\
}

<ul>
  <li>Defined in [src/types.ts:3988](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L3988)</li>
</ul>

##### Index

### Properties

[edges](#edges) [graph\_name](#graph_name) [nodes](#nodes) [options?](#options) [restrictions](#restrictions) [weights](#weights)&#x20;

## Properties

### edges

edges: string\[]

Edges with which to update existing `edges` in graph specified by `graph_name`. Review Edges for more information. Edges must be specified using identifiers; identifiers are grouped as combinations. Identifiers can be used with existing column names, e.g., 'table.column AS EDGE\_ID', expressions, e.g., 'SUBSTR(column, 1, 6) AS EDGE\_NODE1\_NAME', or raw values, e.g., "\{'family', 'coworker'} AS EDGE\_LABEL". If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph.

<ul>
  <li>Defined in [src/types.ts:3994](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L3994)</li>
</ul>

### graph\_name

graph\_name: string

Name of the graph resource to modify.

<ul>
  <li>Defined in [src/types.ts:3990](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L3990)</li>
</ul>

### nodes

nodes: string\[]

Nodes with which to update existing `nodes` in graph specified by `graph_name`. Review Nodes for more information. Nodes must be specified using identifiers; identifiers are grouped as combinations. Identifiers can be used with existing column names, e.g., 'table.column AS NODE\_ID', expressions, e.g., 'ST\_MAKEPOINT(column1, column2) AS NODE\_WKTPOINT', or raw values, e.g., '\{9, 10, 11} AS NODE\_ID'. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph.

<ul>
  <li>Defined in [src/types.ts:3992](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L3992)</li>
</ul>

### `Optional`options

options?: Record\<string, string>

Optional parameters.

<ul>
  <li>Defined in [src/types.ts:4000](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L4000)</li>
</ul>

### restrictions

restrictions: string\[]

Restrictions with which to update existing `restrictions` in graph specified by `graph_name`. Review Restrictions for more information. Restrictions must be specified using identifiers; identifiers are grouped as combinations. Identifiers can be used with existing column names, e.g., 'table.column AS RESTRICTIONS\_EDGE\_ID', expressions, e.g., 'column/2 AS RESTRICTIONS\_VALUECOMPARED', or raw values, e.g., '\{0, 0, 0, 1} AS RESTRICTIONS\_ONOFFCOMPARED'. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph.

<ul>
  <li>Defined in [src/types.ts:3998](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L3998)</li>
</ul>

### weights

weights: string\[]

Weights with which to update existing `weights` in graph specified by `graph_name`. Review Weights for more information. Weights must be specified using identifiers; identifiers are grouped as combinations. Identifiers can be used with existing column names, e.g., 'table.column AS WEIGHTS\_EDGE\_ID', expressions, e.g., 'ST\_LENGTH(wkt) AS WEIGHTS\_VALUESPECIFIED', or raw values, e.g., '\{4, 15} AS WEIGHTS\_VALUESPECIFIED'. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph.

<ul>
  <li>Defined in [src/types.ts:3996](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L3996)</li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.