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

# updatePrompt

***

# Function: updatePrompt()

```ts theme={null}
function updatePrompt(options: UpdatePromptOptions): Promise<PromptTemplate>;
```

Defined in: [src/utils/prompt-templates.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/prompt-templates.ts)

Updates an existing prompt template name.

## Parameters

### options

[`UpdatePromptOptions`](/sdk-api/typescript/reference/types/type-aliases/UpdatePromptOptions)

Update options containing the template identifier.

## Returns

`Promise`\<[`PromptTemplate`](/sdk-api/typescript/reference/types/type-aliases/PromptTemplate)>

A promise that resolves to the updated template metadata.
