---
title: "Checkout a specific version of a prompt template from history"
method: POST
path: "/api/prompt-templates/{id}/checkout"
tags: ["PromptTemplates"]
---

# Checkout a specific version of a prompt template from history

`POST /api/prompt-templates/{id}/checkout`

## Path parameters

- `id` string, required

## Request body

- object
  - `version` number, required

## Response `200`

Checked-out template

## Other responses

- `400` — Validation error
- `404` — Template or version not found

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
