---
title: "Freeze the model under a name"
method: POST
path: "/workspaces/{id}/questions/{questionId}/snapshots"
tags: ["model"]
---

# Freeze the model under a name

`POST /workspaces/{id}/questions/{questionId}/snapshots`

## Request

- Base URL: `https://api.swingfactor.ai/v1`
- URL: `https://api.swingfactor.ai/v1/workspaces/{id}/questions/{questionId}/snapshots`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required
- `questionId` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- SnapshotBody
  - `name` string, required

## Response `201`

The snapshot.

- Snapshot
  - `id` string, uuid, required
  - `workspaceId` string, uuid, required
  - `questionId` string, uuid, required
  - `name` string, required
  - `frozenBy` string, uuid, nullable
  - `frozenByName` string, nullable
  - `frozenAt` string, required
  - `changesSince` integer, required: Changes in the history since it was frozen: how far the model has moved.
  - `links` SnapshotLinks, required: Relative /v1 URLs to follow.
    - `self` string, required
    - `question` string, required

## Other responses

- `401`: No token, or not a valid one: `unauthorized`.
- `404`: No such question.

---

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