> ## 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.

# alter_graph

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/alter_graph.rs#L26-L39)
pub async fn [alter\_graph](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/alter-graph.md#method.alter_graph)( \&self, graph\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), action: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), action\_arg: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AlterGraphResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AlterGraphResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Admin graph server commands.For internal use only: Graph server admin command.

##### Arguments

<ul>
  <li>
    `graph_name` - Graph on which the operation should be applied.If empty, then it will apply to all graphs.This request can be sent from the graph server to the graph client, or from the client to the server depending on the type of operation.
  </li>

  <li>
    `action` - Operation to be applied.
  </li>

  <li>
    `action_arg` - Action specific argument.
  </li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/alter_graph.rs#L57-L77)
pub async fn [alter\_graph\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/alter-graph.md#method.alter_graph_with_opts)( \&self, graph\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), action: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), action\_arg: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), options: [AlterGraphRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.AlterGraphRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AlterGraphResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AlterGraphResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Admin graph server commands.For internal use only: Graph server admin command.

##### Arguments

<ul>
  <li>
    `graph_name` - Graph on which the operation should be applied.If empty, then it will apply to all graphs.This request can be sent from the graph server to the graph client, or from the client to the server depending on the type of operation.
  </li>

  <li>
    `action` - Operation to be applied.
  </li>

  <li>
    `action_arg` - Action specific argument.
  </li>

  <li>
    `options` - The optional parameters; any left unset take the server’s defaults.
  </li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/alter_graph.rs#L80-L91)
pub async fn [alter\_graph\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/alter-graph.md#method.alter_graph_raw)( \&self, request: &[AlterGraphRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.AlterGraphRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AlterGraphResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AlterGraphResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`AlterGraphRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.AlterGraphRequest) to the `/alter/graph` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/alter_graph.rs#L95-L107)
pub async fn [alter\_graph\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/alter-graph.md#method.alter_graph_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[AlterGraphRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.AlterGraphRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AlterGraphResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AlterGraphResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`AlterGraphRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.AlterGraphRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


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