---
title: "Restore a file to a particular checkpointed state"
method: POST
path: "/api/contents/{path}/checkpoints/{checkpoint_id}"
tags: ["contents"]
---

# Restore a file to a particular checkpointed state

`POST /api/contents/{path}/checkpoints/{checkpoint_id}`

## Path parameters

- `path` string, required
- `checkpoint_id` string, required

## Response `204`

Checkpoint restored

## Other responses

- `400` — Bad request

## Changes

> 2 revisions in range; 1 could not be searched.

- **2025-12-10** `e9ae9d653401` — 1 breaking
  - removed the media type `application/json` for the response with the status `400`

[Change history](https://skmtc.dev/google/apis/jupyter-server-api/changes/api/contents/:path/checkpoints/:checkpoint_id/post.md)

---

[API](https://skmtc.dev/google/apis/jupyter-server-api.md) · [All operations](https://skmtc.dev/google/apis/jupyter-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/jupyter-server-api/revisions/b6f1ce06c896/schema)
