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

### alter\_graph

<ul>
  <li>
    alter\_graph(\
    &#x20;graph\_name: string,\
    &#x20;action: string,\
    &#x20;action\_arg: string,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[AlterGraphResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/AlterGraphResponse.md)>

    For internal use only: Graph server admin command.For internal use only: Graph server admin command.

    #### Parameters

    <ul>
      <li>
        graph\_name: string

        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: string

        Operation to be applied.
      </li>

      <li>
        action\_arg: string

        Action specific argument.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[AlterGraphResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/AlterGraphResponse.md)>

    Promise\<Types.AlterGraphResponse> - Promise resolving to the response

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

### alter\_graph\_request

<ul>
  <li>
    alter\_graph\_request(\
    &#x20;request: [AlterGraphRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/AlterGraphRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[AlterGraphResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/AlterGraphResponse.md)>

    For internal use only: Graph server admin command.For internal use only: Graph server admin command.

    #### Parameters

    <ul>
      <li>
        request: [AlterGraphRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/AlterGraphRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[AlterGraphResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/AlterGraphResponse.md)>

    Promise\<Types.AlterGraphResponse> - Promise resolving to the response

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


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