---
title: "Promote a Snapshot to a Template"
method: POST
path: "/snapshot/{id}:promote"
tags: ["snapshot", "template"]
---

# Promote a Snapshot to a Template

`POST /snapshot/{id}:promote`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/snapshot/{id}:promote`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/snapshot/:id:promote/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string, required: Template name
  - `description` string: Template description
  - `default-user` string: Template default user
  - `ssh-key-enabled` boolean: Enable SSH key-based login in the template
  - `password-enabled` boolean: Enable password-based login in the template

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Changes

- **2023-06-06** `cf7b08181585`: 1 info
  - the `description` request property's minLength was decreased from `1` to `0`
- **2023-02-03** `6e9809fd1444`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/snapshot/:id:promote/post.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
