---
title: "Changes to Restore prompt version"
method: POST
path: "/v1/private/prompts/{promptId}/versions/{versionId}/restore"
---

# Changes to Restore prompt version

`POST /v1/private/prompts/{promptId}/versions/{versionId}/restore`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 6 of 83 revisions.

- **2026-05-28** `f59fc1819c0c`: 1 info
- **2026-05-27** `3953a50a6a0e`: 1 warning, 1 info
- **2026-05-20** `a98bd55ddc1e`: 1 info
- **2026-05-19** `415a5d0ad31f`: 1 info
- **2026-05-19** `f93aac27fb6e`: 6 warning, 3 info
- **2026-05-04** `d606e84c75e4`: 6 warning, 6 info

## Changes

- **2026-05-28** `f59fc1819c0c`: 1 info
  - added the optional property `environment` to the response with the `200` status
- **2026-05-27** `3953a50a6a0e`: 1 warning, 1 info
  - removed the optional property `environment` from the response with the `200` status
  - added the optional property `environments` to the response with the `200` status
- **2026-05-20** `a98bd55ddc1e`: 1 info
  - added the optional property `version_number` to the response with the `200` status
- **2026-05-19** `415a5d0ad31f`: 1 info
  - added the optional property `environment` to the response with the `200` status
- **2026-05-19** `f93aac27fb6e`: 6 warning, 3 info
  - removed the optional property `code` from the response with the `400` status
  - removed the optional property `code` from the response with the `404` status
  - removed the optional property `details` from the response with the `400` status
  - removed the optional property `details` from the response with the `404` status
  - removed the optional property `message` from the response with the `400` status
  - removed the optional property `message` from the response with the `404` status
  - added the optional property `errors` to the response with the `400` status
  - added the optional property `errors` to the response with the `404` status
  - added the optional property `version_type` to the response with the `200` status
- **2026-05-04** `d606e84c75e4`: 6 warning, 6 info
  - removed the optional property `environment` from the response with the `200` status
  - removed the optional property `environments` from the response with the `200` status
  - removed the optional property `errors` from the response with the `400` status
  - removed the optional property `errors` from the response with the `404` status
  - removed the optional property `version_number` from the response with the `200` status
  - removed the optional property `version_type` from the response with the `200` status
  - added the optional property `code` to the response with the `400` status
  - added the optional property `code` to the response with the `404` status
  - added the optional property `details` to the response with the `400` status
  - added the optional property `details` to the response with the `404` status
  - added the optional property `message` to the response with the `400` status
  - added the optional property `message` to the response with the `404` status

---

[Operation](https://skmtc.dev/comet-ml/apis/opik-rest-api/docs/v1/private/prompts/:promptId/versions/:versionId/restore/post.md) - [API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) - [Page](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/private/prompts/:promptId/versions/:versionId/restore/post)
