---
title: How to Update an Instance Template
url: https://docs.vultr.com/products/compute/clusters/instance-templates/update
description: Update a Vultr instance template's plan, OS, SSH keys, or label using the API. Changes apply only to new instances.
publish_date: 2026-10-27T21:32:39.045222Z
last_updated: 2026-10-28T17:02:36.202997Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Updating an instance template changes its configuration, such as the plan, OS, SSH keys, or label. The request must include at least one field accepted by the [**Create Instance Template**](https://docs.vultr.com/products/compute/clusters/instance-templates/create) endpoint. Omitting `plan` leaves it at its existing value instead of clearing it. Updated templates apply to new instances created from the template, and existing instances are not affected.

This guide explains how to update an instance template using the Vultr API.

1. Send a `GET` request to the [**List Instance Templates** endpoint](https://www.vultr.com/api/#tag/instance-templates/operation/list-instance-templates) to retrieve all templates.

    ```console
    $ curl "https://api.vultr.com/v2/instances/templates" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    ```

    Note the `id` of the template you want to update.

1. Send a `PUT` request to the [**Update Instance Template** endpoint](https://www.vultr.com/api/#tag/instance-templates/operation/update-instance-template) to update the template. Replace `{template-id}` with the template's ID, `NEW_TEMPLATE_LABEL` with the new label, `OS_ID` with the new operating system ID, and `SSH_KEY_ID` with an SSH key's ID. Include only the fields you want to change.

    ```console
    $ curl "https://api.vultr.com/v2/instances/templates/{template-id}" \
        -X PUT \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        -d '{
            "label": "NEW_TEMPLATE_LABEL",
            "os_id": OS_ID,
            "ssh_key_ids": [
                "SSH_KEY_ID"
            ]
        }'
    ```

    A successful update returns an HTTP `202 Accepted` response. `ssh_key_ids` replaces the template's existing keys. Send `[]` to remove all keys.

1. Send a `GET` request to the [**Get Instance Template** endpoint](https://www.vultr.com/api/#tag/instance-templates/operation/get-instance-template) to retrieve the updated template details.

    ```console
    $ curl "https://api.vultr.com/v2/instances/templates/{template-id}" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    ```

    Verify that the template details reflect the new values.
