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

### alter\_credential

<ul>
  <li>
    alter\_credential(\
    &#x20;credential\_name: string,\
    &#x20;credential\_updates\_map: Record\<string, string>,\
    &#x20;options: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/javascript/types/GPUdbCallback.md),\
    ): Promise\<[AlterCredentialResponse](https://docs.kinetica.com/content/api/javascript/interfaces/AlterCredentialResponse.md)>

    Alter the properties of an existing credential.

    #### Parameters

    <ul>
      <li>
        credential\_name: string

        Name of the credential to be altered. Must be an existing credential.
      </li>

      <li>
        credential\_updates\_map: Record\<string, string>

        Map containing the properties of the credential to be updated. Error if empty.
      </li>

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

        Optional parameters.
      </li>

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

        Optional callback function
      </li>
    </ul>

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

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

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

### alter\_credential\_request

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

    Alter the properties of an existing credential.

    #### Parameters

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

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

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

        Optional callback function
      </li>
    </ul>

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

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

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


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