> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-auto-cli-sdk-preview-pr-398.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.update_template

Update an existing template.

## Signature

```python theme={null}
VastAI.update_template(
    hash_id: str,
    name: Optional[str] = None,
    image: Optional[str] = None,
    image_tag: Optional[str] = None,
    href: Optional[str] = None,
    repo: Optional[str] = None,
    login: Optional[str] = None,
    env: Optional[str] = None,
    ssh: bool = False,
    jupyter: bool = False,
    direct: bool = False,
    jupyter_dir: Optional[str] = None,
    jupyter_lab: bool = False,
    onstart_cmd: Optional[str] = None,
    search_params: Optional[str] = None,
    no_default: bool = False,
    disk_space: Optional[str] = None,
    readme: Optional[str] = None,
    hide_readme: bool = False,
    desc: Optional[str] = None,
    public: bool = False
) -> dict
```

## Parameters

<ParamField path="hash_id" type="str" required />

<ParamField path="name" type="Optional[str]">
  name of the template
</ParamField>

<ParamField path="image" type="Optional[str]">
  docker container image to launch
</ParamField>

<ParamField path="image_tag" type="Optional[str]">
  docker image tag
</ParamField>

<ParamField path="href" type="Optional[str]">
  link you want to provide
</ParamField>

<ParamField path="repo" type="Optional[str]">
  link to repository
</ParamField>

<ParamField path="login" type="Optional[str]">
  docker login arguments for private repo authentication, surround with ''
</ParamField>

<ParamField path="env" type="Optional[str]">
  Contents of the 'Docker options' field
</ParamField>

<ParamField path="ssh" type="bool">
  Launch as an ssh instance type
</ParamField>

<ParamField path="jupyter" type="bool">
  Launch as a jupyter instance instead of an ssh instance
</ParamField>

<ParamField path="direct" type="bool">
  Use (faster) direct connections for jupyter & ssh
</ParamField>

<ParamField path="jupyter_dir" type="Optional[str]">
  For runtype 'jupyter', directory in instance to use to launch jupyter
</ParamField>

<ParamField path="jupyter_lab" type="bool">
  For runtype 'jupyter', Launch instance with jupyter lab
</ParamField>

<ParamField path="onstart_cmd" type="Optional[str]">
  contents of onstart script as single argument
</ParamField>

<ParamField path="search_params" type="Optional[str]">
  search offers filters
</ParamField>

<ParamField path="no_default" type="bool">
  Disable default search param query args
</ParamField>

<ParamField path="disk_space" type="Optional[str]">
  disk storage space, in GB
</ParamField>

<ParamField path="readme" type="Optional[str]">
  readme string
</ParamField>

<ParamField path="hide_readme" type="bool">
  hide the readme from users
</ParamField>

<ParamField path="desc" type="Optional[str]">
  description string
</ParamField>

<ParamField path="public" type="bool">
  make template available to public
</ParamField>

## Returns

`dict`

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.update_template(hash_id="value")
print(result)
```
